Fix streaming still being authorized for suspended accounts (#36448)
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user