about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-05-07 14:33:19 +0200
committerGitHub <noreply@github.com>2021-05-07 14:33:19 +0200
commit2c77d97e0d59e045a9b04fccc83f0f24d190d8d8 (patch)
tree8c9722562a0621416968fbb9a30f6b248032f604 /app/services
parentb42a8ef7d95f84818c445310886dcec0bbeda890 (diff)
Add joined date to profiles in web UI (#16169)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/activitypub/process_account_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/activitypub/process_account_service.rb b/app/services/activitypub/process_account_service.rb
index 6afeb92d6..bb2e8f665 100644
--- a/app/services/activitypub/process_account_service.rb
+++ b/app/services/activitypub/process_account_service.rb
@@ -87,6 +87,7 @@ class ActivityPub::ProcessAccountService < BaseService
     @account.url                     = url || @uri
     @account.uri                     = @uri
     @account.actor_type              = actor_type
+    @account.created_at              = @json['published'] if @json['published'].present?
   end
 
   def set_immediate_attributes!
@@ -101,7 +102,7 @@ class ActivityPub::ProcessAccountService < BaseService
   end
 
   def set_fetchable_key!
-    @account.public_key        = public_key || ''
+    @account.public_key = public_key || ''
   end
 
   def set_fetchable_attributes!