Class: NewsmastMastodon::ReblogChannelsService

Inherits:
BaseService
  • Object
show all
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?
     = NewsmastMastodon::CommunityAdmin.where(is_boost_bot: true, account_status: NewsmastMastodon::CommunityAdmin.[:active]).pluck(:account_id)
    # Custom Channel
    process_custom_channels()

    # Group Channel
    process_group_channels()
  end
end