mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 15:52:25 -05:00 
			
		
		
		
	[bugfix] Fix panic in isStatusHomeTimelineable (#3096)
		
	This commit is contained in:
		
					parent
					
						
							
								aeb65bceae
							
						
					
				
			
			
				commit
				
					
						bbbdf01213
					
				
			
		
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -161,12 +161,13 @@ func (f *Filter) isStatusHomeTimelineable(ctx context.Context, owner *gtsmodel.A | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		// Fetch next parent in conversation. | 		// Fetch next parent in conversation. | ||||||
|  | 		inReplyToID := next.InReplyToID | ||||||
| 		next, err = f.state.DB.GetStatusByID( | 		next, err = f.state.DB.GetStatusByID( | ||||||
| 			gtscontext.SetBarebones(ctx), | 			gtscontext.SetBarebones(ctx), | ||||||
| 			next.InReplyToID, | 			inReplyToID, | ||||||
| 		) | 		) | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
| 			return false, gtserror.Newf("error getting status parent %s: %w", next.InReplyToID, err) | 			return false, gtserror.Newf("error getting status parent %s: %w", inReplyToID, err) | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue