Do not leak instance-local polls to remote followers

This commit is contained in:
Thibaut Girka 2019-03-11 11:25:38 +01:00
parent 89bee860cd
commit 7d026aa079
1 changed files with 1 additions and 1 deletions

View File

@ -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]