From 7f21744661069facc88c85f1bd53972c47a0401e Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 18 Nov 2019 08:26:22 -0600 Subject: When a post is delayed or updated, remove the old version from local timelines before delivering the new verison. --- 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 7b44c9a54..78e824964 100644 --- a/app/workers/post_status_worker.rb +++ b/app/workers/post_status_worker.rb @@ -9,6 +9,8 @@ class PostStatusWorker status = Status.find(status_id) return false if status.destroyed? + RemoveFromLocalTimelinesService.new.call(status) + status.visibility = options[:visibility] if options[:visibility] status.local_only = options[:local_only] if options[:local_only] status.reject_replies = options[:reject_replies] if options[:reject_replies] -- cgit