diff options
author | Unknwon <u@gogs.io> | 2016-12-21 04:18:23 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-12-21 04:18:23 -0500 |
commit | c1e53cdc72d346229bf50cc637a18e72903eecb6 (patch) | |
tree | f421259e2e6186aae5717abebe9d8887a94f9924 /models/issue_comment.go | |
parent | e9f6a4307372b8e82518b10c89a9a7d649153d73 (diff) |
Minor fix for PR #3822
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r-- | models/issue_comment.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go index 3f81889c..13a97707 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -160,11 +160,11 @@ func (c *Comment) EventTag() string { return "event-" + com.ToStr(c.ID) } -// MailParticipants sends new comment emails to repository watchers +// mailParticipants sends new comment emails to repository watchers // and mentioned people. -func (cmt *Comment) MailParticipants(e Engine, opType ActionType, issue *Issue) (err error) { +func (cmt *Comment) mailParticipants(e Engine, opType ActionType, issue *Issue) (err error) { mentions := markdown.FindAllMentions(cmt.Content) - if err = UpdateIssueMentions(e, cmt.IssueID, mentions); err != nil { + if err = updateIssueMentions(e, cmt.IssueID, mentions); err != nil { return fmt.Errorf("UpdateIssueMentions [%d]: %v", cmt.IssueID, err) } @@ -278,7 +278,7 @@ func createComment(e *xorm.Session, opts *CreateCommentOptions) (_ *Comment, err if err = notifyWatchers(e, act); err != nil { log.Error(4, "notifyWatchers: %v", err) } - if err = comment.MailParticipants(e, act.OpType, opts.Issue); err != nil { + if err = comment.mailParticipants(e, act.OpType, opts.Issue); err != nil { log.Error(4, "MailParticipants: %v", err) } } |