mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-08-28 10:31:36 +02:00
Fix notification page panic (#9337)
This commit is contained in:
parent
ba1acf5b50
commit
27f68bc96f
|
@ -446,7 +446,7 @@ func (nl NotificationList) LoadComments() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, notification := range nl {
|
for _, notification := range nl {
|
||||||
if notification.CommentID > 0 && notification.Comment == nil {
|
if notification.CommentID > 0 && notification.Comment == nil && comments[notification.CommentID] != nil {
|
||||||
notification.Comment = comments[notification.CommentID]
|
notification.Comment = comments[notification.CommentID]
|
||||||
notification.Comment.Issue = notification.Issue
|
notification.Comment.Issue = notification.Issue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue