about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-16 01:53:56 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 01:53:56 -0600
commitbc201505d02e94259f9d48d2b0341fc704af781e (patch)
tree2052f9deca7b13ae72c1f566f7824d9b80ef9c4a
parentd968a34cce99ffbe40bb271f939371a800db1c72 (diff)
check use `hidden` instead of `hidden?`
-rw-r--r--app/workers/post_status_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/post_status_worker.rb b/app/workers/post_status_worker.rb
index 9d9bb93db..e4a29d1bd 100644
--- a/app/workers/post_status_worker.rb
+++ b/app/workers/post_status_worker.rb
@@ -13,7 +13,7 @@ class PostStatusWorker
     LinkCrawlWorker.perform_async(status.id) unless options[:nocrawl] || status.spoiler_text.present?
     DistributionWorker.perform_async(status.id) unless options[:distribute] == false
 
-    unless status.local_only? || options[:distribute] == false || options[:federate] == false || status.hidden?
+    unless status.local_only? || options[:distribute] == false || options[:federate] == false || status.hidden
       ActivityPub::DistributionWorker.perform_async(status.id)
     end