mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 01:34:27 +00:00 
			
		
		
		
	Fix notification page panic (#9337)
This commit is contained in:
		@@ -446,7 +446,7 @@ func (nl NotificationList) LoadComments() error {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	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.Issue = notification.Issue
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user