From 74731c3a5aea71c81e4ca75bde96154f3adf3cfa Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 29 Mar 2022 22:57:33 +0800 Subject: Move some issue methods as functions (#19255) * Move some issue methods as functions * Fix bug --- services/comments/comments.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/comments') diff --git a/services/comments/comments.go b/services/comments/comments.go index 6f63060c45..c1b3ab73c9 100644 --- a/services/comments/comments.go +++ b/services/comments/comments.go @@ -28,7 +28,7 @@ func CreateIssueComment(doer *user_model.User, repo *repo_model.Repository, issu return nil, err } - mentions, err := issue.FindAndUpdateIssueMentions(db.DefaultContext, doer, comment.Content) + mentions, err := models.FindAndUpdateIssueMentions(db.DefaultContext, issue, doer, comment.Content) if err != nil { return nil, err } -- cgit v1.2.3