mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 19:32:24 -05:00 
			
		
		
		
	[bugfix] more little edit fixes (#3633)
* fix slice size calculation * stop attached status edit slice getting cached
This commit is contained in:
		
					parent
					
						
							
								6b727404be
							
						
					
				
			
			
				commit
				
					
						29da5b35a5
					
				
			
		
					 2 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										1
									
								
								internal/cache/db.go
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								internal/cache/db.go
									
										
									
									
										vendored
									
									
								
							|  | @ -1320,6 +1320,7 @@ func (c *Caches) initStatus() { | ||||||
| 		s2.Mentions = nil | 		s2.Mentions = nil | ||||||
| 		s2.Emojis = nil | 		s2.Emojis = nil | ||||||
| 		s2.CreatedWithApplication = nil | 		s2.CreatedWithApplication = nil | ||||||
|  | 		s2.Edits = nil | ||||||
| 
 | 
 | ||||||
| 		return s2 | 		return s2 | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | @ -281,7 +281,7 @@ func (s *Status) AllAttachmentIDs() []string { | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	// Get count of attachment IDs. | 	// Get count of attachment IDs. | ||||||
| 	total += len(s.Attachments) | 	total += len(s.AttachmentIDs) | ||||||
| 	for _, edit := range s.Edits { | 	for _, edit := range s.Edits { | ||||||
| 		total += len(edit.AttachmentIDs) | 		total += len(edit.AttachmentIDs) | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue