diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-16 02:25:27 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-16 02:25:27 -0600 |
commit | 6b17111d6904ba83b5479c4d00df622635029e8a (patch) | |
tree | 294f67f5fe3e83e2d418989ea800842eb644970c /app/workers | |
parent | 484c4d0c5dc347b79209f6870340df07d49bb5df (diff) |
must throw exception if update fails
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/post_status_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |