Redo StatusReaction set_custom_emoji to be similar to AnnouncementReaction

Co-authored-by: Plastikmensch <plastikmensch@users.noreply.github.com>
This commit is contained in:
Jeremy Kescher 2023-05-10 21:03:43 +02:00
parent 241974a74a
commit b8774d3b5d
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4

View file

@ -27,6 +27,6 @@ class StatusReaction < ApplicationRecord
private private
def set_custom_emoji def set_custom_emoji
self.custom_emoji = CustomEmoji.find_by(shortcode: name, domain: account.domain) if name.blank? self.custom_emoji = CustomEmoji.find_by(disabled: false, shortcode: name, domain: account.domain) if name.present?
end end
end end