mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 07:12:26 -05:00 
			
		
		
		
	[bugfix] Use reblogged status in notification, instead of wrapper status (#775)
This commit is contained in:
		
					parent
					
						
							
								969c194fcd
							
						
					
				
			
			
				commit
				
					
						3ce26a60f8
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -742,6 +742,11 @@ func (c *converter) NotificationToAPINotification(ctx context.Context, n *gtsmod | |||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	if apiStatus != nil && apiStatus.Reblog != nil { | ||||
| 		// use the actual reblog status for the notifications endpoint | ||||
| 		apiStatus = apiStatus.Reblog.Status | ||||
| 	} | ||||
| 
 | ||||
| 	return &model.Notification{ | ||||
| 		ID:        n.ID, | ||||
| 		Type:      string(n.NotificationType), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue