Module: NewsmastMastodon::Concerns::UserSettingExtend
- Extended by:
- ActiveSupport::Concern
- Includes:
- NonChannelHelper
- Defined in:
- app/controllers/newsmast_mastodon/concerns/user_setting_extend.rb
Instance Method Summary collapse
Methods included from NonChannelHelper
Instance Method Details
#setting_default_privacy ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/newsmast_mastodon/concerns/user_setting_extend.rb', line 7 def setting_default_privacy return false unless defined?(NewsmastMastodon::Community) && NewsmastMastodon::Community.respond_to?(:find_by) # Default visibility setting community_privacy = NewsmastMastodon::Community.default_privacy(self) return community_privacy if community_privacy.present? settings['default_privacy'] || (account.locked? ? 'private' : 'public') end |