diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-16 03:40:02 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-16 03:40:02 -0600 |
commit | e89e9923f9bcc2302986fda34b3c61ad4b79b1cc (patch) | |
tree | e95ecf65b62215b814fa6ac252a3cb19604a99eb | |
parent | 8e307ca94dfa2281013fc29dd5e0812afaf721d0 (diff) |
clean up
-rw-r--r-- | app/workers/post_status_worker.rb | 4 |
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 |