Browse Source

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

pull/1341/head
Claire 3 years ago
parent
commit
7709bbba65
  1. 3
      app/services/activitypub/process_account_service.rb

3
app/services/activitypub/process_account_service.rb

@ -77,6 +77,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