diff options
Diffstat (limited to 'routers/api/v1/repo')
-rw-r--r-- | routers/api/v1/repo/issue_comment.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go index a3fc6f41f3..720513f007 100644 --- a/routers/api/v1/repo/issue_comment.go +++ b/routers/api/v1/repo/issue_comment.go @@ -283,6 +283,9 @@ func editIssueComment(ctx *context.APIContext, form api.EditIssueCommentOption) ctx.Error(500, "UpdateComment", err) return } + + notification.NotifyUpdateComment(ctx.User, comment, oldContent) + ctx.JSON(200, comment.APIFormat()) } @@ -371,5 +374,8 @@ func deleteIssueComment(ctx *context.APIContext) { ctx.Error(500, "DeleteCommentByID", err) return } + + notification.NotifyDeleteComment(ctx.User, comment) + ctx.Status(204) } |