mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 18:48:06 +01:00
Redo StatusReaction set_custom_emoji to be similar to AnnouncementReaction
Co-authored-by: Plastikmensch <plastikmensch@users.noreply.github.com>
This commit is contained in:
parent
241974a74a
commit
b8774d3b5d
1 changed files with 1 additions and 1 deletions
|
@ -27,6 +27,6 @@ class StatusReaction < ApplicationRecord
|
|||
private
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue