Skip to content
Snippets Groups Projects
Unverified Commit 999c3439 authored by Claire's avatar Claire Committed by GitHub
Browse files

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

parent 4b585197
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,9 @@ class ActivityPub::ProcessAccountService < BaseService ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment