Fix: Disconnect websocket streams from users when mark_deleted is triggered. (#40083)

This commit is contained in:
Shlee authored and GitHub committed 2026-08-06 13:30:20 +00:00
1 parent 601e05090a
commit 523aca3b06
1 file changed
+4
+4
View File
@@ -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!