Class: NewsmastMastodon::ReblogChannelsService
- Inherits:
-
BaseService
- Object
- BaseService
- NewsmastMastodon::ReblogChannelsService
- Defined in:
- app/services/newsmast_mastodon/reblog_channels_service.rb
Instance Method Summary collapse
Instance Method Details
#call(status) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/services/newsmast_mastodon/reblog_channels_service.rb', line 7 def call(status) @status = status unless @status.sensitive? || @status.unlisted_visibility? community_admin_account_ids = NewsmastMastodon::CommunityAdmin.where(is_boost_bot: true, account_status: NewsmastMastodon::CommunityAdmin.account_statuses[:active]).pluck(:account_id) # Custom Channel process_custom_channels(community_admin_account_ids) # Group Channel process_group_channels(community_admin_account_ids) end end |