about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-16 02:29:46 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 02:29:46 -0600
commit1274ec3a611939050c0512e504fcbe0a21c34144 (patch)
tree62d0db6f2234b61270342c5e10911e143403042e /app
parent6b17111d6904ba83b5479c4d00df622635029e8a (diff)
make sure `hidden` is set false when it has not been specifed in the post worker
Diffstat (limited to 'app')
-rw-r--r--app/workers/post_status_worker.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/post_status_worker.rb b/app/workers/post_status_worker.rb
index 47ae94fb2..674491bb7 100644
--- a/app/workers/post_status_worker.rb
+++ b/app/workers/post_status_worker.rb
@@ -7,6 +7,8 @@ class PostStatusWorker
     status = Status.find(status_id)
     return false if status.destroyed?
 
+    options[:hidden] = false unless options[:hidden].blank?
+
     status.update!(options.slice(:visibility, :local_only, :reject_replies, :hidden).compact)
     status.reload