mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 08:12:26 -05:00 
			
		
		
		
	fix silly lil bug
This commit is contained in:
		
					parent
					
						
							
								a47085d141
							
						
					
				
			
			
				commit
				
					
						d89a559dd9
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -237,10 +237,10 @@ func (p *processor) dereferenceStatusFields(status *gtsmodel.Status, requestingU | ||||||
| 		} | 		} | ||||||
| 		l.Debugf("dereferenced attachment: %+v", deferencedAttachment) | 		l.Debugf("dereferenced attachment: %+v", deferencedAttachment) | ||||||
| 		deferencedAttachment.StatusID = status.ID | 		deferencedAttachment.StatusID = status.ID | ||||||
|  | 		deferencedAttachment.Description = a.Description | ||||||
| 		if err := p.db.Put(deferencedAttachment); err != nil { | 		if err := p.db.Put(deferencedAttachment); err != nil { | ||||||
| 			return fmt.Errorf("error inserting dereferenced attachment with remote url %s: %s", a.RemoteURL, err) | 			return fmt.Errorf("error inserting dereferenced attachment with remote url %s: %s", a.RemoteURL, err) | ||||||
| 		} | 		} | ||||||
| 		deferencedAttachment.Description = a.Description |  | ||||||
| 		attachmentIDs = append(attachmentIDs, deferencedAttachment.ID) | 		attachmentIDs = append(attachmentIDs, deferencedAttachment.ID) | ||||||
| 	} | 	} | ||||||
| 	status.Attachments = attachmentIDs | 	status.Attachments = attachmentIDs | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue