Add emoji_reaction_policy setting
This commit is contained in:
parent
defd790889
commit
673e607e94
15 changed files with 70 additions and 63 deletions
|
@ -350,6 +350,8 @@ class Status < ApplicationRecord
|
|||
end
|
||||
|
||||
def emoji_reactions_grouped_by_name(account = nil)
|
||||
return [] if self.account.emoji_reaction_policy == :block_and_hide
|
||||
|
||||
(Oj.load(status_stat&.emoji_reactions || '', mode: :strict) || []).tap do |emoji_reactions|
|
||||
if account.present?
|
||||
remove_emoji_reactions = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue