Fix blocked accounts not being automatically removed from trending statuses (#34891)
This commit is contained in:
parent
c77158c8b7
commit
d4bbe8b719
2 changed files with 14 additions and 1 deletions
|
@ -15,6 +15,7 @@ class SuspendAccountService < BaseService
|
|||
unmerge_from_home_timelines!
|
||||
unmerge_from_list_timelines!
|
||||
privatize_media_attachments!
|
||||
remove_from_trends!
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -101,6 +102,10 @@ class SuspendAccountService < BaseService
|
|||
end
|
||||
end
|
||||
|
||||
def remove_from_trends!
|
||||
StatusTrend.where(account: @account).delete_all
|
||||
end
|
||||
|
||||
def signed_activity_json
|
||||
@signed_activity_json ||= Oj.dump(serialize_payload(@account, ActivityPub::UpdateSerializer, signer: @account))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue