From 523aca3b067d859aa339be39bc339ec8da524f99 Mon Sep 17 00:00:00 2001 From: Shlee Date: Thu, 6 Aug 2026 23:00:20 +0930 Subject: [PATCH] Fix: Disconnect websocket streams from users when mark_deleted is triggered. (#40083) --- app/models/account.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/account.rb b/app/models/account.rb index 147c28a65f..0e5a2ddfe8 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -326,6 +326,10 @@ class Account < ApplicationRecord create_deletion_request! update!(requested_deletion_at: date) end + + # This terminates all connections for the given account with the streaming + # server: + redis.publish("timeline:system:#{id}", { event: :kill }.to_json) if local? end def memorialize!