aboutsummaryrefslogtreecommitdiffstats
path: root/services/comments
diff options
context:
space:
mode:
Diffstat (limited to 'services/comments')
-rw-r--r--services/comments/comments.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/services/comments/comments.go b/services/comments/comments.go
index ed479e7110..ad79eec4fb 100644
--- a/services/comments/comments.go
+++ b/services/comments/comments.go
@@ -22,8 +22,11 @@ func CreateIssueComment(doer *models.User, repo *models.Repository, issue *model
if err != nil {
return nil, err
}
-
- notification.NotifyCreateIssueComment(doer, repo, issue, comment)
+ mentions, err := issue.FindAndUpdateIssueMentions(models.DefaultDBContext(), doer, comment.Content)
+ if err != nil {
+ return nil, err
+ }
+ notification.NotifyCreateIssueComment(doer, repo, issue, comment, mentions)
return comment, nil
}