mirror of
https://github.com/whippyshou/mastodon
synced 2024-11-29 07:18:48 +09:00
Fix limited follower id in fan-out-on-write service (#14709)
This commit is contained in:
parent
ae871c4d46
commit
b1bb1906be
@ -58,9 +58,9 @@ class FanOutOnWriteService < BaseService
|
|||||||
def deliver_to_mentioned_followers(status)
|
def deliver_to_mentioned_followers(status)
|
||||||
Rails.logger.debug "Delivering status #{status.id} to limited followers"
|
Rails.logger.debug "Delivering status #{status.id} to limited followers"
|
||||||
|
|
||||||
status.mentions.joins(:account).merge(status.account.followers_for_local_distribution).select(:id).reorder(nil).find_in_batches do |followers|
|
status.mentions.joins(:account).merge(status.account.followers_for_local_distribution).select(:id, :account_id).reorder(nil).find_in_batches do |mentions|
|
||||||
FeedInsertWorker.push_bulk(followers) do |follower|
|
FeedInsertWorker.push_bulk(mentions) do |mention|
|
||||||
[status.id, follower.id, :home]
|
[status.id, mention.account_id, :home]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user