Fix remote accounts being possibly persisted to database with incomplete protocol values (#25886)

This commit is contained in:
Claire 2023-07-10 18:42:19 +02:00 committed by GitHub
parent 2b174c0d78
commit de3b86a5f8

View file

@ -76,6 +76,9 @@ class ActivityPub::ProcessAccountService < BaseService
@account.suspended_at = domain_block.created_at if auto_suspend? @account.suspended_at = domain_block.created_at if auto_suspend?
@account.suspension_origin = :local if auto_suspend? @account.suspension_origin = :local if auto_suspend?
@account.silenced_at = domain_block.created_at if auto_silence? @account.silenced_at = domain_block.created_at if auto_silence?
set_immediate_protocol_attributes!
@account.save @account.save
end end