Skip to content

Commit 2471ce1

Browse files
committed
fix notification
1 parent e92f28f commit 2471ce1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/notification/indexer/indexer.go

+5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ func (r *indexerNotifier) NotifyUpdateComment(doer *models.User, c *models.Comme
7474

7575
func (r *indexerNotifier) NotifyDeleteComment(doer *models.User, comment *models.Comment) {
7676
if comment.Type == models.CommentTypeComment {
77+
if err := comment.LoadIssue(); err != nil {
78+
log.Error("LoadIssue: %v", err)
79+
return
80+
}
81+
7782
var found bool
7883
if comment.Issue.Comments != nil {
7984
for i := 0; i < len(comment.Issue.Comments); i++ {

0 commit comments

Comments
 (0)