mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Load attachments for code comments (#30124)
Fix #30103 ps: comments has `LoadAttributes`, but maybe considering performance problem, we don't call it.
This commit is contained in:
		| @@ -74,6 +74,10 @@ func findCodeComments(ctx context.Context, opts FindCommentsOptions, issue *Issu | |||||||
| 		return nil, err | 		return nil, err | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	if err := comments.LoadAttachments(ctx); err != nil { | ||||||
|  | 		return nil, err | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	// Find all reviews by ReviewID | 	// Find all reviews by ReviewID | ||||||
| 	reviews := make(map[int64]*Review) | 	reviews := make(map[int64]*Review) | ||||||
| 	ids := make([]int64, 0, len(comments)) | 	ids := make([]int64, 0, len(comments)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user