mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 23:12:25 -05:00 
			
		
		
		
	[bugfix] Carry-over "PinnedAt" when refreshing status (#3373)
This commit is contained in:
		
					parent
					
						
							
								095663f5cc
							
						
					
				
			
			
				commit
				
					
						43e443f9f3
					
				
			
		
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -516,10 +516,12 @@ func (d *Dereferencer) enrichStatus( | |||
| 		latestStatus.ID = status.ID | ||||
| 	} | ||||
| 
 | ||||
| 	// Carry-over values and set fetch time. | ||||
| 	latestStatus.UpdatedAt = status.UpdatedAt | ||||
| 	// Set latest fetch time and carry- | ||||
| 	// over some values from "old" status. | ||||
| 	latestStatus.FetchedAt = time.Now() | ||||
| 	latestStatus.UpdatedAt = status.UpdatedAt | ||||
| 	latestStatus.Local = status.Local | ||||
| 	latestStatus.PinnedAt = status.PinnedAt | ||||
| 
 | ||||
| 	// Carry-over approvals. Remote instances might not yet | ||||
| 	// serve statuses with the `approved_by` field, but we | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue