about summary refs log tree commit diff
path: root/app/services/activitypub
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-05-15 17:11:40 +0200
committerThibaut Girka <thib@sitedethib.com>2019-05-15 17:11:40 +0200
commit6badf2d252a980d496b894c7258a778c57639953 (patch)
treeb7c71885c413a8205dbe9d01bab7c60ea75c11bf /app/services/activitypub
parentcd534830adab89300703904ffe87894dec8e2f95 (diff)
parentf4f22391b2d469bd1d5c29ec815daf020282f30c (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/services/activitypub')
-rw-r--r--app/services/activitypub/process_account_service.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/services/activitypub/process_account_service.rb b/app/services/activitypub/process_account_service.rb
index 6d0609ca0..ad22d37fe 100644
--- a/app/services/activitypub/process_account_service.rb
+++ b/app/services/activitypub/process_account_service.rb
@@ -50,12 +50,12 @@ class ActivityPub::ProcessAccountService < BaseService
 
   def create_account
     @account = Account.new
-    @account.protocol    = :activitypub
-    @account.username    = @username
-    @account.domain      = @domain
-    @account.suspended   = true if auto_suspend?
-    @account.silenced    = true if auto_silence?
-    @account.private_key = nil
+    @account.protocol     = :activitypub
+    @account.username     = @username
+    @account.domain       = @domain
+    @account.private_key  = nil
+    @account.suspended_at = domain_block.created_at if auto_suspend?
+    @account.silenced_at = domain_block.created_at if auto_silence?
   end
 
   def update_account