From 1e2977256cead2a12189687c568daf7b55830561 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 28 Apr 2019 03:03:29 -0500 Subject: Allow own roars to be included in lists. --- app/services/fan_out_on_write_service.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/services') diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb index f2e0415cf..2efd51445 100644 --- a/app/services/fan_out_on_write_service.rb +++ b/app/services/fan_out_on_write_service.rb @@ -64,6 +64,12 @@ class FanOutOnWriteService < BaseService def deliver_to_lists(status) Rails.logger.debug "Delivering status #{status.id} to lists" + List.where(account_id: status.account.id, show_self: true).select(:id).reorder(nil).find_in_batches do |lists| + FeedInsertWorker.push_bulk(lists) do |list| + [status.id, list.id, :list] + end + end + status.account.lists_for_local_distribution.select(:id).reorder(nil).find_in_batches do |lists| FeedInsertWorker.push_bulk(lists) do |list| [status.id, list.id, :list] -- cgit