aboutsummaryrefslogtreecommitdiffstats
path: root/services/webhook/notifier.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/webhook/notifier.go')
-rw-r--r--services/webhook/notifier.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/webhook/notifier.go b/services/webhook/notifier.go
index 672abd5c95..80de6b00fd 100644
--- a/services/webhook/notifier.go
+++ b/services/webhook/notifier.go
@@ -481,6 +481,7 @@ func (m *webhookNotifier) DeleteComment(ctx context.Context, doer *user_model.Us
log.Error("LoadPoster: %v", err)
return
}
+ comment.Issue = nil // reload issue to ensure it has the latest data, especially the number of comments
if err = comment.LoadIssue(ctx); err != nil {
log.Error("LoadIssue: %v", err)
return