parent
3e8b4752a1
commit
903b9ad347
7 changed files with 31 additions and 2 deletions
|
@ -61,6 +61,7 @@ module Account::OtherSettings
|
|||
|
||||
def show_emoji_reaction?(account)
|
||||
return false unless Setting.enable_emoji_reaction
|
||||
return true if local? && account&.local? && user.setting_slip_local_emoji_reaction
|
||||
|
||||
case emoji_reaction_policy
|
||||
when :block
|
||||
|
@ -104,7 +105,9 @@ module Account::OtherSettings
|
|||
end
|
||||
|
||||
def public_settings_for_local
|
||||
public_settings.merge(public_master_settings)
|
||||
s = public_settings
|
||||
s = s.merge({ 'emoji_reaction_policy' => 'allow' }) if local? && user&.setting_slip_local_emoji_reaction
|
||||
s.merge(public_master_settings)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -91,6 +91,10 @@ module User::HasSettings
|
|||
settings['emoji_reaction_policy']
|
||||
end
|
||||
|
||||
def setting_slip_local_emoji_reaction
|
||||
settings['slip_local_emoji_reaction']
|
||||
end
|
||||
|
||||
def setting_unfollow_modal
|
||||
settings['web.unfollow_modal']
|
||||
end
|
||||
|
|
|
@ -37,6 +37,7 @@ class UserSettings
|
|||
setting :stop_emoji_reaction_streaming, default: false
|
||||
setting :emoji_reaction_streaming_notify_impl2, default: false
|
||||
setting :emoji_reaction_policy, default: :allow, in: %w(allow outside_only followers_only following_only mutuals_only block)
|
||||
setting :slip_local_emoji_reaction, default: false
|
||||
setting :unsafe_limited_distribution, default: false
|
||||
setting :dtl_force_visibility, default: :unchange, in: %w(unchange public public_unlisted unlisted)
|
||||
setting :dtl_force_searchability, default: :unchange, in: %w(unchange public public_unlisted)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue