about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 a863f1f11..165c3e9ba 100644
--- a/app/services/activitypub/process_account_service.rb
+++ b/app/services/activitypub/process_account_service.rb
@@ -104,7 +104,7 @@ class ActivityPub::ProcessAccountService < BaseService
 
   def copy_policy_of_parent_domain
     domain_parts = @domain.split('.')
-    domains = (1..domain_parts.count-1).map { |i| domain_parts[i..-1] }
+    domains = (1..domain_parts.count-1).map { |i| domain_parts[i..-1].join('.') }
     return if domains.empty?
 
     existing_policy = DomainBlock.find_by(domain: domains)