Fix streaming still being authorized for suspended accounts (#36451)

This commit is contained in:
Claire 2025-10-13 16:03:15 +02:00 committed by GitHub
parent 68de818b86
commit 7a60edf0bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -254,6 +254,10 @@ class Account < ApplicationRecord
update!(suspended_at: date, suspension_origin: origin)
create_canonical_email_block! if block_email
end
# This terminates all connections for the given account with the streaming
# server:
redis.publish("timeline:system:#{id}", Oj.dump(event: :kill)) if local?
end
def unsuspend!