From ce204ad532d0047b8484b6aaa72cc15daea11eaa Mon Sep 17 00:00:00 2001 From: yuvrajangadsingh Date: Sat, 14 Mar 2026 15:01:41 +0530 Subject: [PATCH] fix: address review feedback on permissions and poster loading --- models/issues/commit_comment.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/models/issues/commit_comment.go b/models/issues/commit_comment.go index 45d5b1bafb..6988e20b9a 100644 --- a/models/issues/commit_comment.go +++ b/models/issues/commit_comment.go @@ -54,10 +54,8 @@ func FindCommitCommentsByCommitSHA(ctx context.Context, repoID int64, commitSHA return nil, err } - for _, c := range comments { - if err := c.LoadPoster(ctx); err != nil { - return nil, err - } + if err := CommentList(comments).LoadPosters(ctx); err != nil { + return nil, err } return comments, nil