From cc484f7271314723034be458c5c062045f4dff29 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 02:12:05 -0600 Subject: refresh `status` state after updating --- app/workers/post_status_worker.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/workers/post_status_worker.rb b/app/workers/post_status_worker.rb index e4a29d1bd..f5ba1d3d2 100644 --- a/app/workers/post_status_worker.rb +++ b/app/workers/post_status_worker.rb @@ -8,6 +8,7 @@ class PostStatusWorker return false if status.destroyed? 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] LinkCrawlWorker.perform_async(status.id) unless options[:nocrawl] || status.spoiler_text.present? -- cgit