about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-16 02:12:05 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 02:12:05 -0600
commitcc484f7271314723034be458c5c062045f4dff29 (patch)
tree998db18470fd2329fdc3f8ff4925efa212854445 /app
parent6ca44fd04fe7cbb5cdac0eee31ba31107bda8f26 (diff)
refresh `status` state after updating
Diffstat (limited to 'app')
-rw-r--r--app/workers/post_status_worker.rb1
1 files changed, 1 insertions, 0 deletions
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?