From 1274ec3a611939050c0512e504fcbe0a21c34144 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 02:29:46 -0600 Subject: make sure `hidden` is set false when it has not been specifed in the post worker --- app/workers/post_status_worker.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/workers/post_status_worker.rb') 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 -- cgit