mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-15 04:13:35 +02:00
fix: address review feedback on permissions and poster loading
This commit is contained in:
parent
6dc3a97e94
commit
ce204ad532
@ -54,10 +54,8 @@ func FindCommitCommentsByCommitSHA(ctx context.Context, repoID int64, commitSHA
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, c := range comments {
|
if err := CommentList(comments).LoadPosters(ctx); err != nil {
|
||||||
if err := c.LoadPoster(ctx); err != nil {
|
return nil, err
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return comments, nil
|
return comments, nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user