about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-16 03:40:02 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 03:40:02 -0600
commite89e9923f9bcc2302986fda34b3c61ad4b79b1cc (patch)
treee95ecf65b62215b814fa6ac252a3cb19604a99eb /app/workers
parent8e307ca94dfa2281013fc29dd5e0812afaf721d0 (diff)
clean up
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/post_status_worker.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/workers/post_status_worker.rb b/app/workers/post_status_worker.rb
index 6062bb9df..ac3aef1fe 100644
--- a/app/workers/post_status_worker.rb
+++ b/app/workers/post_status_worker.rb
@@ -4,12 +4,10 @@ class PostStatusWorker
   include Sidekiq::Worker
 
   def perform(status_id, options = {})
-    options.symbolize_keys!
-
     status = Status.find(status_id)
     return false if status.destroyed?
 
-    options[:hidden] = false unless options[:hidden].blank?
+    options.symbolize_keys!
 
     status.update!(options.slice(:visibility, :local_only, :reject_replies, :hidden).compact)
     status.reload