about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-08-12 17:41:03 +0200
committerGitHub <noreply@github.com>2017-08-12 17:41:03 +0200
commitccdd5a9576819cdc95946d98fea0e3c8bbd1d626 (patch)
tree02012fef91425658dae5c5fbfe9a03fb015afc77 /app/services
parent40be4ea239d567845ddd0af204141fa2b7e22b15 (diff)
Add serializing/unserializing of "locked" actor attribute (#4585)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/activitypub/process_account_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/activitypub/process_account_service.rb b/app/services/activitypub/process_account_service.rb
index 92e2dbb30..9fb7ebf9e 100644
--- a/app/services/activitypub/process_account_service.rb
+++ b/app/services/activitypub/process_account_service.rb
@@ -46,6 +46,7 @@ class ActivityPub::ProcessAccountService < BaseService
     @account.avatar_remote_url   = image_url('icon')
     @account.header_remote_url   = image_url('image')
     @account.public_key          = public_key || ''
+    @account.locked              = @json['_:locked'] || false
     @account.save!
   end