[backend/akko-client] Expose quote notifications as mention notifications

This is a bit difficult of a situation as Akkoma does not have quote
notifications. This is the closest thing we have and the frontend seems
to handle it well.
This commit is contained in:
Kopper 2024-09-12 18:38:55 +03:00 committed by Iceshrimp development
parent 356f5f17ed
commit 6d8c686401

View file

@ -25,12 +25,14 @@ public class NotificationEntity : IEntity
NotificationType.Mention => "mention", NotificationType.Mention => "mention",
NotificationType.Reply => "mention", NotificationType.Reply => "mention",
NotificationType.Renote => "reblog", NotificationType.Renote => "reblog",
NotificationType.Quote => "status",
NotificationType.Like => "favourite", NotificationType.Like => "favourite",
NotificationType.PollEnded => "poll", NotificationType.PollEnded => "poll",
NotificationType.FollowRequestReceived => "follow_request", NotificationType.FollowRequestReceived => "follow_request",
NotificationType.Edit => "update", NotificationType.Edit => "update",
NotificationType.Quote when isPleroma => "mention",
NotificationType.Quote when !isPleroma => "status",
NotificationType.Reaction when isPleroma => "pleroma:emoji_reaction", NotificationType.Reaction when isPleroma => "pleroma:emoji_reaction",
NotificationType.Reaction when !isPleroma => "reaction", NotificationType.Reaction when !isPleroma => "reaction",