Skip to content

Commit

Permalink
Include my status in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo committed Jul 4, 2019
1 parent b5eac75 commit 262933c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/fan_out_on_write_service.rb
Expand Up @@ -59,7 +59,7 @@ def deliver_to_lists(status)
def deliver_to_self_lists(status)
Rails.logger.debug "Delivering status #{status.id} to own lists"

List.where(account_id: status.account.id).select(:id).reorder(nil).find_in_batches do |lists|
List.where("account_id = ? AND title LIKE ?", status.account.id, "%+").select(:id).reorder(nil).find_in_batches do |lists|
FeedInsertWorker.push_bulk(lists) do |list|
[status.id, list.id, :list]
end
Expand Down

0 comments on commit 262933c

Please sign in to comment.