mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 19:52:25 -05:00 
			
		
		
		
	[bugfix] Don't try to add nil filtered statuses to context (#3388)
This commit is contained in:
		
					parent
					
						
							
								8bd8c6fb45
							
						
					
				
			
			
				commit
				
					
						d3d6e3f920
					
				
			
		
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -247,6 +247,12 @@ func (p *Processor) GetVisibleAPIStatuses( | |||
| 			continue | ||||
| 		} | ||||
| 
 | ||||
| 		if apiStatus == nil { | ||||
| 			// Status was | ||||
| 			// filtered out. | ||||
| 			continue | ||||
| 		} | ||||
| 
 | ||||
| 		// Append converted status to return slice. | ||||
| 		apiStatuses = append(apiStatuses, *apiStatus) | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue