Commit Graph

6 Commits

Author SHA1 Message Date
fef a5c96afeac
display external custom emoji reactions properly
Using an emoji map was completely unnecessary in
the first place, because the reaction list from
the API response includes URLs for every custom
emoji anyway.  The reaction list now also contains
a boolean field indicating whether it is an
external custom emoji, which is required because
people should only be able to react with Unicode
emojis and local custom ones, not with custom
emojis from other servers.
2023-07-07 21:57:39 +02:00
fef ef97a35161
cleanup JS imports and other minor stuff 2023-07-07 21:57:39 +02:00
fef f1c26962f0
remove outdated comments 2023-07-07 21:57:39 +02:00
fef 759435f6a8
make number of displayed reactions a setting
This adds an extra item to the local settings for
specifying the number of reactions shown in toots.
The detailed status view always shows all
reactions.
2023-07-07 21:57:39 +02:00
fef 661c1bb360
limit number of reactions displayed
Too many reactions on a single post quickly get
spammy, so they are now sorted by count and only
the first MAX_REACTIONS number of different
emojis are actually displayed.
2023-07-07 21:57:39 +02:00
fef 622e384aa4
cleanup frontend emoji reaction code 2023-07-07 21:57:39 +02:00
Renamed from app/javascript/flavours/glitch/components/status_reactions_bar.js (Browse further)