Fix: Disconnect websocket streams from users when mark_deleted is triggered. (#40083)
This commit is contained in:
1 parent
601e05090a
commit
523aca3b06
1 file changed
+4
@@ -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!
|
||||
|
||||
Reference in new issue
Block a user