Skip to content

Commit

Permalink
Allow blocking emoji reaction settings always from federation
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Sep 12, 2023
1 parent e505ba6 commit defd790
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -364,23 +364,23 @@ def hide_followers_count?
end

def emoji_reactions_must_following?
return false unless Setting.enable_block_emoji_reaction_settings
return false unless Setting.enable_block_emoji_reaction_settings || !local?
return user&.settings&.[]('emoji_reactions.must_be_following') || false if user.present?
return settings['emoji_reactions_must_be_following'] || false if settings.present?

false
end

def emoji_reactions_must_follower?
return false unless Setting.enable_block_emoji_reaction_settings
return false unless Setting.enable_block_emoji_reaction_settings || !local?
return user&.settings&.[]('emoji_reactions.must_be_follower') || false if user.present?
return settings['emoji_reaction_must_be_follower'] || false if settings.present?

false
end

def emoji_reactions_deny_from_all?
return false unless Setting.enable_block_emoji_reaction_settings
return false unless Setting.enable_block_emoji_reaction_settings || !local?
return user&.settings&.[]('emoji_reactions.deny_from_all') || false if user.present?
return settings['emoji_reaction_deny_from_all'] || false if settings.present?

Expand Down

0 comments on commit defd790

Please sign in to comment.