diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-11-18 08:26:22 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-18 08:26:54 -0600 |
commit | 7f21744661069facc88c85f1bd53972c47a0401e (patch) | |
tree | fd450d2c2dd16d2f6328f5d4f942a14662efa066 /app/workers | |
parent | 4f8172d2154b10883618f94717f7a183503d72c6 (diff) |
When a post is delayed or updated, remove the old version from local timelines before delivering the new verison.
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/post_status_worker.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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] |