From 999c3439466e26e71073c9ff795186eb979a8798 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 10 Jul 2023 18:42:19 +0200 Subject: [PATCH] Fix remote accounts being possibly persisted to database with incomplete protocol values (#25886) --- app/services/activitypub/process_account_service.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/services/activitypub/process_account_service.rb b/app/services/activitypub/process_account_service.rb index ca0083b16..8d49527b3 100644 --- a/app/services/activitypub/process_account_service.rb +++ b/app/services/activitypub/process_account_service.rb @@ -76,6 +76,9 @@ class ActivityPub::ProcessAccountService < BaseService @account.suspended_at = domain_block.created_at if auto_suspend? @account.suspension_origin = :local if auto_suspend? @account.silenced_at = domain_block.created_at if auto_silence? + + set_immediate_protocol_attributes! + @account.save end