From e89e9923f9bcc2302986fda34b3c61ad4b79b1cc Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 03:40:02 -0600 Subject: clean up --- app/workers/post_status_worker.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (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 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 -- cgit