Refactor notification for indexer (#5111)
* notification for indexer * use NullNotifier as parent struct
This commit is contained in:
parent
477a80f658
commit
82e08a3364
8 changed files with 75 additions and 15 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue