fix tests

This commit is contained in:
Lunny Xiao 2018-07-13 23:27:06 +08:00
parent 796805c77b
commit aa1412c436
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -157,6 +157,10 @@ func (w *webhookNotifier) NotifyUpdateComment(doer *models.User, c *models.Comme
}
func (w *webhookNotifier) NotifyDeleteComment(doer *models.User, comment *models.Comment) {
if err := comment.LoadIssue(); err != nil {
log.Error(2, "LoadIssue [comment_id: %d]: %v", comment.ID, err)
return
}
mode, _ := models.AccessLevel(doer.ID, comment.Issue.Repo)
if err := models.PrepareWebhooks(comment.Issue.Repo, models.HookEventIssueComment, &api.IssueCommentPayload{