From a9da3ce93b8c5236bfca0f99cc88b5aba86ab186 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 02:36:38 -0600 Subject: invalidate cache when publishing previously-unpublished posts --- app/workers/post_status_worker.rb | 2 ++ 1 file changed, 2 insertions(+) (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 674491bb7..e41c80167 100644 --- a/app/workers/post_status_worker.rb +++ b/app/workers/post_status_worker.rb @@ -23,6 +23,8 @@ class PostStatusWorker PollExpirationNotifyWorker.perform_at(status.poll.expires_at, status.poll.id) if status.poll + Rails.cache.delete("statuses/#{status.id}") + return true if !status.reply? || status.account.id == status.in_reply_to_account_id || status.hidden ActivityTracker.increment('activity:interactions') return if status.account.following?(status.in_reply_to_account_id) -- cgit