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

local
Claire 10 months ago committed by GitHub
parent 4b5851974c
commit 999c343946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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

Loading…
Cancel
Save