about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-10-26 00:09:10 -0500
committermultiple creatures <dev@multiple-creature.party>2019-10-26 00:09:10 -0500
commit856ae951bd637b7dac9c7be7ffbd141c006350cf (patch)
tree16f6a985cd955dcb7d19cc4af663e28b8ad4d216 /app/workers
parent8233fb9465b32bd4e0af7636a23e9e5f39152032 (diff)
before publishing a status force its formatting to be recached (fixes the mentions bug)
Diffstat (limited to 'app/workers')
-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 99f2c2e99..9f3fb7f63 100644
--- a/app/workers/post_status_worker.rb
+++ b/app/workers/post_status_worker.rb
@@ -15,6 +15,7 @@ class PostStatusWorker
     status.save!
 
     process_mentions_service.call(status) unless options[:nomentions]
+    Rails.cache.delete("formatted_status:#{status.id}")
 
     LinkCrawlWorker.perform_async(status.id) unless options[:nocrawl] || status.spoiler_text?
     DistributionWorker.perform_async(status.id) unless options[:distribute] == false