about summary refs log tree commit diff
path: root/app/services/activitypub
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-14 04:46:51 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-14 04:46:51 -0600
commit9d6b593379d1d826391c58585c7f5121323b9410 (patch)
treee8c4b30767dc901fd4da594e055d84e270c33496 /app/services/activitypub
parentaade8a3f756f517401ca7f3a135c4840b952c13a (diff)
move setting initial `known` property on remote accounts to `create_account` method
Diffstat (limited to 'app/services/activitypub')
-rw-r--r--app/services/activitypub/process_account_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/activitypub/process_account_service.rb b/app/services/activitypub/process_account_service.rb
index f550c4348..f2831fca2 100644
--- a/app/services/activitypub/process_account_service.rb
+++ b/app/services/activitypub/process_account_service.rb
@@ -62,6 +62,7 @@ class ActivityPub::ProcessAccountService < BaseService
     @account.silenced_at      = domain_block.created_at if auto_silence?
     @account.force_unlisted   = true if auto_force_unlisted?
     @account.force_sensitive  = true if auto_force_sensitive?
+    @account.known            = !Setting.auto_reject_unknown && Setting.auto_mark_known
   end
 
   def update_account
@@ -84,7 +85,6 @@ class ActivityPub::ProcessAccountService < BaseService
     @account.display_name            = @json['name'] || ''
     @account.note                    = @json['summary'] || ''
     @account.locked                  = @json['manuallyApprovesFollowers'] || false
-    @account.known                   = !Setting.auto_reject_unknown && Setting.auto_mark_known
     @account.froze                   = @json['froze'] || false
     @account.adult_content           = @json['adultContent'] || (@json['suggestedMinAge'].to_i >= 18)
     @account.gently                  = @json['gently'] || false