Stop forwarding remote custom emoji reaction
This commit is contained in:
parent
b802d1f1ac
commit
9aa4561252
2 changed files with 9 additions and 0 deletions
|
@ -35,6 +35,14 @@ class EmojiReaction < ApplicationRecord
|
|||
after_destroy :refresh_cache
|
||||
after_destroy :invalidate_cleanup_info
|
||||
|
||||
def custom_emoji?
|
||||
custom_emoji.present?
|
||||
end
|
||||
|
||||
def remote_custom_emoji?
|
||||
custom_emoji? && !custom_emoji.local?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def refresh_cache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue