From 6b17111d6904ba83b5479c4d00df622635029e8a Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 02:25:27 -0600 Subject: must throw exception if update fails --- app/workers/post_status_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/workers/post_status_worker.rb b/app/workers/post_status_worker.rb index 68cae75fa..47ae94fb2 100644 --- a/app/workers/post_status_worker.rb +++ b/app/workers/post_status_worker.rb @@ -7,7 +7,7 @@ class PostStatusWorker status = Status.find(status_id) return false if status.destroyed? - status.update(options.slice(:visibility, :local_only, :reject_replies, :hidden).compact) + status.update!(options.slice(:visibility, :local_only, :reject_replies, :hidden).compact) status.reload process_mentions_service.call(status, skip_process: options[:process_mentions] != true) unless options[:nomentions] || status.hidden -- cgit