[backend/masto-client] Fix notifications endpoints when notification has no notifier (because the user was deleted, etc)
This commit is contained in:
parent
6d06afd5cb
commit
7d4d2e831e
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ public class NotificationController(DatabaseContext db, NotificationRenderer not
|
|||
var res = await db.Notifications
|
||||
.IncludeCommonProperties()
|
||||
.Where(p => p.Notifiee == user)
|
||||
.Where(p => p.Notifier != null)
|
||||
.Where(p => p.Type == NotificationType.Follow ||
|
||||
p.Type == NotificationType.Mention ||
|
||||
p.Type == NotificationType.Reply ||
|
||||
|
|
Loading…
Add table
Reference in a new issue