mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-18 08:13:17 +00:00
Fix streaming still being authorized for suspended accounts (#36451)
This commit is contained in:
parent
68de818b86
commit
7a60edf0bd
2 changed files with 5 additions and 1 deletions
|
|
@ -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!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue