Skip to content

Commit 13ec425

Browse files
committed
Fix remote accounts being possibly persisted to database with incomplete protocol values (#25886)
1 parent 7a99f07 commit 13ec425

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/services/activitypub/process_account_service.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ def create_account
7676
@account.suspended_at = domain_block.created_at if auto_suspend?
7777
@account.suspension_origin = :local if auto_suspend?
7878
@account.silenced_at = domain_block.created_at if auto_silence?
79+
80+
set_immediate_protocol_attributes!
81+
7982
@account.save
8083
end
8184

0 commit comments

Comments
 (0)