mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 06:12:25 -05:00 
			
		
		
		
	[bugfix] Fix panic when opening instance actor in web view (#3898)
This commit is contained in:
		
					parent
					
						
							
								bad12a62e6
							
						
					
				
			
			
				commit
				
					
						0c49d5abb8
					
				
			
		
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -1021,6 +1021,12 @@ func (a *accountDB) GetAccountWebStatuses( | ||||||
| 	limit int, | 	limit int, | ||||||
| 	maxID string, | 	maxID string, | ||||||
| ) ([]*gtsmodel.Status, error) { | ) ([]*gtsmodel.Status, error) { | ||||||
|  | 	if account.Username == config.GetHost() { | ||||||
|  | 		// Instance account | ||||||
|  | 		// doesn't post statuses. | ||||||
|  | 		return nil, nil | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 	// Check for an easy case: account exposes no statuses via the web. | 	// Check for an easy case: account exposes no statuses via the web. | ||||||
| 	webVisibility := account.Settings.WebVisibility | 	webVisibility := account.Settings.WebVisibility | ||||||
| 	if webVisibility == gtsmodel.VisibilityNone { | 	if webVisibility == gtsmodel.VisibilityNone { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue