From 6ca44fd04fe7cbb5cdac0eee31ba31107bda8f26 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 02:08:21 -0600 Subject: change context of `hidden?` to mean a hidden post, not a non-distributable post --- app/workers/activitypub/distribute_poll_update_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/workers') diff --git a/app/workers/activitypub/distribute_poll_update_worker.rb b/app/workers/activitypub/distribute_poll_update_worker.rb index 57379768f..bbdee1286 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 if @status.preloadable_poll.nil? || @status.local_only? + return if @status.preloadable_poll.nil? || @status.local_only? || @status.hidden ActivityPub::DeliveryWorker.push_bulk(inboxes) do |inbox_url| [payload, @account.id, inbox_url] -- cgit