Module: NewsmastMastodon::Overrides::BatchedRemoveStatusServiceExtension
- Defined in:
- app/services/newsmast_mastodon/overrides/batched_remove_status_service_extension.rb
Instance Method Summary collapse
Instance Method Details
#unpush_from_home_timelines(account, statuses) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/services/newsmast_mastodon/overrides/batched_remove_status_service_extension.rb', line 8 def unpush_from_home_timelines(account, statuses) account.followers_for_local_distribution.includes(:user).reorder(nil).find_each do |follower| statuses.each do |status| FeedManager.instance.unpush_from_home(follower, status) FeedManager.instance.unpush_from_custom(follower, status) end end end |