about summary refs log tree commit diff
path: root/app/workers/activitypub/distribute_poll_update_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/activitypub/distribute_poll_update_worker.rb')
-rw-r--r--app/workers/activitypub/distribute_poll_update_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/activitypub/distribute_poll_update_worker.rb b/app/workers/activitypub/distribute_poll_update_worker.rb
index 25dee4ee2..601075ea6 100644
--- a/app/workers/activitypub/distribute_poll_update_worker.rb
+++ b/app/workers/activitypub/distribute_poll_update_worker.rb
@@ -10,7 +10,7 @@ class ActivityPub::DistributePollUpdateWorker
     @status  = Status.find(status_id)
     @account = @status.account
 
-    return unless @status.preloadable_poll
+    return if @status.preloadable_poll.nil? || @status.local_only?
 
     ActivityPub::DeliveryWorker.push_bulk(inboxes) do |inbox_url|
       [payload, @account.id, inbox_url]