mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-20 12:19:27 +00:00
Do not leak instance-local polls to remote followers
This commit is contained in:
parent
89bee860cd
commit
7d026aa079
|
@ -9,7 +9,7 @@ class ActivityPub::DistributePollUpdateWorker
|
|||
@status = Status.find(status_id)
|
||||
@account = @status.account
|
||||
|
||||
return unless @status.poll
|
||||
return if @status.poll.nil? || @status.local_only?
|
||||
|
||||
ActivityPub::DeliveryWorker.push_bulk(inboxes) do |inbox_url|
|
||||
[payload, @account.id, inbox_url]
|
||||
|
|
Loading…
Reference in a new issue