about summary refs log tree commit diff
diff options
context:
space:
mode:
-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