From 856ae951bd637b7dac9c7be7ffbd141c006350cf Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 26 Oct 2019 00:09:10 -0500 Subject: before publishing a status force its formatting to be recached (fixes the mentions bug) --- app/workers/post_status_worker.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/workers/post_status_worker.rb') 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 -- cgit