Also create notification while commenting on issue

This commit is contained in:
Andrey Nering 2016-12-05 19:19:59 -02:00
parent c3810c6d43
commit 8a3c856b1c
1 changed files with 5 additions and 0 deletions

View File

@ -903,6 +903,11 @@ func NewComment(ctx *context.Context, form auth.CreateCommentForm) {
return
}
if err := models.CreateOrUpdateIssueNotifications(issue); err != nil {
ctx.Handle(500, "CreateOrUpdateIssueNotifications", err)
return
}
log.Trace("Comment created: %d/%d/%d", ctx.Repo.Repository.ID, issue.ID, comment.ID)
}