Skip to content

Commit 8a3c856

Browse files
committed
Also create notification while commenting on issue
1 parent c3810c6 commit 8a3c856

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

routers/repo/issue.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,11 @@ func NewComment(ctx *context.Context, form auth.CreateCommentForm) {
903903
return
904904
}
905905

906+
if err := models.CreateOrUpdateIssueNotifications(issue); err != nil {
907+
ctx.Handle(500, "CreateOrUpdateIssueNotifications", err)
908+
return
909+
}
910+
906911
log.Trace("Comment created: %d/%d/%d", ctx.Repo.Repository.ID, issue.ID, comment.ID)
907912
}
908913

0 commit comments

Comments
 (0)