Add translatable_private setting

This commit is contained in:
KMY 2023-09-01 17:30:08 +09:00
parent 05ae3c1948
commit 3cf08a8f4b
8 changed files with 25 additions and 2 deletions

View file

@ -319,6 +319,10 @@ class Account < ApplicationRecord
user&.setting_noai || (settings.present? && settings['noai']) || false
end
def translatable_private?
user&.setting_translatable_private || (settings.present? && settings['translatable_private']) || false
end
def public_statuses_count
hide_statuses_count? ? 0 : statuses_count
end
@ -387,6 +391,7 @@ class Account < ApplicationRecord
'emoji_reaction_must_following' => emoji_reactions_must_following?,
'emoji_reaction_must_follower' => emoji_reactions_must_follower?,
'emoji_reaction_deny_from_all' => emoji_reactions_deny_from_all?,
'translatable_private' => translatable_private?,
}
config = config.merge(settings) if settings.present?
config