Commit Graph

8 Commits

Author SHA1 Message Date
Plastikmensch 0ac7b22532
Fix being able to bypass MAX_REACTIONS
When reacting with different custom emojis with the same shortcode, it would count as an already present reaction and processed, bypassing the limit.

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
2023-07-07 21:57:41 +02:00
Jeremy Kescher 4cb90c6bf0
Fix invalidating status reactions when they already exist
Co-authored-by: Plastikmensch <plastikmensch@users.noreply.github.com>
2023-07-07 21:57:40 +02:00
fef 370a5d2cd1
bypass reaction limit for foreign accounts 2023-07-07 21:57:40 +02:00
fef 3540af41db
support reacting with foreign custom emojis 2023-07-07 21:57:39 +02:00
fef 5526b1b39b
change default reaction limit to 1 2023-07-07 21:57:39 +02:00
fef c633dd7d0f
make frontend fetch reaction limit
the maximum number of reactions was previously
hardcoded to 8.  this commit also fixes an
incorrect query in StatusReactionValidator where
it didn't count per-user reactions but the total
amount of different ones.
2023-07-07 21:57:38 +02:00
fef 953ee687ef
make status reaction count limit configurable 2023-07-07 21:57:38 +02:00
fef 6038222aa7
add backend support for status emoji reactions
turns out we can just reuse the code for
announcement reactions.
2023-07-07 21:57:38 +02:00