From ea619b39b2f2a3c1fb5ad28ebd4a269b2f822111 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 18 Oct 2018 19:23:05 +0800 Subject: Add notification interface and refactor UI notifications (#5085) * add notification interface and refactor UI notifications * add missing methods on notification interface and notifiy only issue status really changed * implement NotifyPullRequestReview for ui notification --- routers/api/v1/repo/issue_comment.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'routers/api/v1/repo/issue_comment.go') diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go index ba627bb8a2..f958922914 100644 --- a/routers/api/v1/repo/issue_comment.go +++ b/routers/api/v1/repo/issue_comment.go @@ -9,6 +9,7 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/notification" api "code.gitea.io/sdk/gitea" ) @@ -163,6 +164,8 @@ func CreateIssueComment(ctx *context.APIContext, form api.CreateIssueCommentOpti return } + notification.NotifyCreateIssueComment(ctx.User, ctx.Repo.Repository, issue, comment) + ctx.JSON(201, comment.APIFormat()) } -- cgit v1.2.3