Fix pushing hashtag-followed posts to feeds of inactive users (#33018)

This commit is contained in:
Eugen Rochko 2024-11-22 09:30:57 +01:00 committed by GitHub
parent 0518613dd7
commit d75088d699
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -103,7 +103,7 @@ class FanOutOnWriteService < BaseService
end
def deliver_to_hashtag_followers!
TagFollow.where(tag_id: @status.tags.map(&:id)).select(:id, :account_id).reorder(nil).find_in_batches do |follows|
TagFollow.for_local_distribution.where(tag_id: @status.tags.map(&:id)).select(:id, :account_id).reorder(nil).find_in_batches do |follows|
FeedInsertWorker.push_bulk(follows) do |follow|
[@status.id, follow.account_id, 'tags', { 'update' => update? }]
end