-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Glitch-soc/Firefish emoji reactions API #1921
Conversation
Please pass tests. |
@@ -5,6 +5,7 @@ namespace NotificationType { | |||
export const Favourite: Entity.NotificationType = 'favourite' | |||
export const Reblog: Entity.NotificationType = 'reblog' | |||
export const Mention: Entity.NotificationType = 'mention' | |||
export const Reaction: Entity.NotificationType = 'reaction' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add a new notification type? Is it used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add Reaction even though EmojiReaction exists? What's the difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly to stay in line with Firefish's reaction
notification name. I don't think it's very necessary but helps with differentiating string-only reaction notifications (Pleroma) from Reaction object notifications
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I got it.
You mean
In Pleroma(current):
When we receive an EmojiReaction notification, it contains emoji
field in the object (it does not contain reaction
). And it should be NotificationType.EmojiReaction
.
In Firefish:
When we receive a Reaction notification, it contains reaction
field in the object (it does not contain emoji
). And it should be NotificationType.Reaction
.
Furthermore, in the future Pleroma, when we receive an EmojiReaction, it contains reaction
field in the object instead of emoji
field. And at that time, we can remove NotificationType.EmojiReaction
and emoji
field in the notification object.
Correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, exactly.
I'll be able to address the review items later today :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Adapted from https://git.joinfirefish.org/firefish/firefish/-/merge_requests/10532/diffs#diff-content-acabf6b2898e3102f138b148d469c390595935d1 from @VyrCossont