Skip to content

Commit 5a78ce9

Browse files
committed
fix tests
1 parent 26675b8 commit 5a78ce9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/notification/webhook/webhook.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ func (w *webhookNotifier) NotifyUpdateComment(doer *models.User, c *models.Comme
157157
}
158158

159159
func (w *webhookNotifier) NotifyDeleteComment(doer *models.User, comment *models.Comment) {
160+
if err := comment.LoadIssue(); err != nil {
161+
log.Error(2, "LoadIssue [comment_id: %d]: %v", comment.ID, err)
162+
return
163+
}
160164
mode, _ := models.AccessLevel(doer.ID, comment.Issue.Repo)
161165

162166
if err := models.PrepareWebhooks(comment.Issue.Repo, models.HookEventIssueComment, &api.IssueCommentPayload{

0 commit comments

Comments
 (0)