summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-11-02 09:56:02 +0100
committerGitHub <noreply@github.com>2020-11-02 10:56:02 +0200
commit06268dcf53657ffe012abe878e1127ab4f954264 (patch)
treec579e5e9e15459eef0dd45d41ec005acdb0d917d /models
parent563165abe47a84f2c463a97be539b04c1bcdc5de (diff)
downloadgitea-06268dcf53657ffe012abe878e1127ab4f954264.tar.gz
gitea-06268dcf53657ffe012abe878e1127ab4f954264.zip
Fix reactions on code comments (#13390)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'models')
-rw-r--r--models/issue_comment.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index 63256ddc99..a7e9c049bf 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -1111,6 +1111,10 @@ func fetchCodeCommentsByReview(e Engine, issue *Issue, currentUser *User, review
return nil, err
}
+ if err := comment.LoadReactions(issue.Repo); err != nil {
+ return nil, err
+ }
+
if re, ok := reviews[comment.ReviewID]; ok && re != nil {
// If the review is pending only the author can see the comments (except the review is set)
if review.ID == 0 {