mastodon/app
Plastikmensch 3a91f535fa
Refactor emoji reactions
Instead of processing tag and then look for the custom emoji, let the processing return an emoji.

Add `name` to `process_emoji_tags` to check if it matches the shortcode.

Removed `process_single_emoji` and added its code to `process_emoji_tags`

Removed arg from `maybe_process_misskey_reaction`.
Ideally, `original_status` should be a global object, but I wanted to modify vanilla code as little as possible.

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
2023-05-27 12:01:13 +02:00
..
chewy
controllers ReactionsController: Don't check for status reaction existence in destroy 2023-05-27 12:01:13 +02:00
helpers Add hCaptcha support (#25019) 2023-05-16 23:27:35 +02:00
javascript eslint fix 2023-05-27 12:01:13 +02:00
lib Refactor emoji reactions 2023-05-27 12:01:13 +02:00
mailers Add user handle to notification mail recipient address (#24240) 2023-04-17 11:06:06 +02:00
models Don't set me to true for remote reactions 2023-05-27 12:01:13 +02:00
policies Add missing authorization to ReactService 2023-05-27 12:01:13 +02:00
presenters Fix Performance/CollectionLiteralInLoop cop (#24819) 2023-05-04 05:33:55 +02:00
serializers support reacting with foreign custom emojis 2023-05-27 12:01:13 +02:00
services Only allow reacting with remote emojis when status is local 2023-05-27 12:01:13 +02:00
validators Fix invalidating status reactions when they already exist 2023-05-27 12:01:13 +02:00
views Fix visible reactions setting not applying 2023-05-27 12:01:13 +02:00
workers Reactions: Return 404 when status should not be visible, asynchronous unreact 2023-05-27 12:01:13 +02:00