[backend/core] Correctly populate the note field in renote notifications

This commit is contained in:
Laura Hausmann 2024-03-16 19:24:45 +01:00
parent bcf9210764
commit c5d723c99e
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -262,7 +262,7 @@ public class NotificationService(
{
Id = IdHelpers.GenerateSlowflakeId(),
CreatedAt = DateTime.UtcNow,
Note = note,
Note = note.IsQuote ? note : note.Renote,
Notifiee = note.Renote.User,
Notifier = note.User,
Type = note.IsQuote ? Notification.NotificationType.Quote : Notification.NotificationType.Renote