[backend] Fix note bite notifications

This commit is contained in:
pancakes 2024-10-19 00:23:59 +10:00 committed by Iceshrimp development
parent 3218de9f56
commit fbbc50e158

View file

@ -216,6 +216,7 @@ public class NotificationService(
Notifiee = (bite.TargetUser ?? bite.TargetNote?.User ?? bite.TargetBite?.User) ??
throw new InvalidOperationException("Null checks say one of these must not be null"),
Notifier = bite.User,
Note = bite.TargetNote,
Bite = bite,
Type = Notification.NotificationType.Bite
};