Do not leak instance-local polls to remote followers

th-downstream
Thibaut Girka 6 years ago
parent 33001891b6
commit bd6951a15d

@ -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…
Cancel
Save