1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-15 07:09:03 +09:00
YuruToot/app
Plastikmensch 1a42ad69f7
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-07-07 21:57:41 +02:00
..
chewy Change account search to match by text when opted-in (#25599) 2023-06-29 13:05:21 +02:00
controllers ReactionsController: Don't check for status reaction existence in destroy 2023-07-07 21:57:40 +02:00
helpers Merge branch 'main' into glitch-soc/merge-upstream 2023-07-06 15:16:34 +02:00
javascript eslint fix 2023-07-07 21:57:40 +02:00
lib Refactor emoji reactions 2023-07-07 21:57:41 +02:00
mailers Add unsubscribe link to e-mails (#25378) 2023-06-12 14:22:46 +02:00
models Don't set me to true for remote reactions 2023-07-07 21:57:41 +02:00
policies Add missing authorization to ReactService 2023-07-07 21:57:40 +02:00
presenters Fix Performance/CollectionLiteralInLoop cop (#24819) 2023-05-04 05:33:55 +02:00
serializers support reacting with foreign custom emojis 2023-07-07 21:57:39 +02:00
services Only allow reacting with remote emojis when status is local 2023-07-07 21:57:41 +02:00
validators Fix invalidating status reactions when they already exist 2023-07-07 21:57:40 +02:00
views Fix visible reactions setting not applying 2023-07-07 21:57:40 +02:00
workers Reactions: Return 404 when status should not be visible, asynchronous unreact 2023-07-07 21:57:40 +02:00