2
0

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

This commit is contained in:
Claire
2025-10-13 15:35:44 +02:00
committed by GitHub
parent 7e98fa9b47
commit 2971ac9863
3 changed files with 29 additions and 1 deletions

View File

@@ -32,6 +32,10 @@ module Account::Suspensions
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!