diff options
Diffstat (limited to 'models/issue_assignees.go')
-rw-r--r-- | models/issue_assignees.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/models/issue_assignees.go b/models/issue_assignees.go index 08a567c4eb..c78132db5d 100644 --- a/models/issue_assignees.go +++ b/models/issue_assignees.go @@ -131,18 +131,22 @@ func (issue *Issue) toggleAssignee(sess *xorm.Session, doer *User, assigneeID in return false, nil, fmt.Errorf("loadRepo: %v", err) } - // Comment - comment, err = createComment(sess, &CreateCommentOptions{ + var opts = &CreateCommentOptions{ Type: CommentTypeAssignees, Doer: doer, Repo: issue.Repo, Issue: issue, RemovedAssignee: removed, AssigneeID: assigneeID, - }) + } + // Comment + comment, err = createCommentWithNoAction(sess, opts) if err != nil { return false, nil, fmt.Errorf("createComment: %v", err) } + if err = sendCreateCommentAction(sess, opts, comment); err != nil { + return false, nil, err + } // if pull request is in the middle of creation - don't call webhook if isCreate { |