about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-15 13:40:54 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-15 14:12:24 -0500
commit5e3ea221a80d7498d4939386f072d933e6b23dda (patch)
treee64017e83bbe4dc7689c3663bca19c58359890ed /app/services
parentcf3ec71aa564c7fe47ec79f8dd5f14e3bce0b85c (diff)
add `supports_chat` property, rename `adults_only` to `adult_content`, federate the kobolds~
Diffstat (limited to 'app/services')
-rw-r--r--app/services/activitypub/process_account_service.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/services/activitypub/process_account_service.rb b/app/services/activitypub/process_account_service.rb
index 414dbfda7..6846f6d4e 100644
--- a/app/services/activitypub/process_account_service.rb
+++ b/app/services/activitypub/process_account_service.rb
@@ -79,7 +79,10 @@ class ActivityPub::ProcessAccountService < BaseService
     @account.display_name            = @json['name'] || ''
     @account.note                    = @json['summary'] || ''
     @account.locked                  = @json['manuallyApprovesFollowers'] || false
-    @account.adults_only             = @json['suggestedMinAge'].to_i >= 18
+    @account.adult_content           = @json['adultContent'] || (@json['suggestedMinAge'].to_i >= 18)
+    @account.supports_chat           = @json['supportsChat'] || false
+    @account.gently                  = @json['gently'] || false
+    @account.kobold                  = @json['kobold'] || false
     @account.fields                  = property_values || {}
     @account.also_known_as           = as_array(@json['alsoKnownAs'] || []).map { |item| value_or_id(item) }
     @account.actor_type              = actor_type