From 5242ebf5633a7ebc0147bd3770c356e9700e6def Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 8 Dec 2019 03:12:10 -0600 Subject: forgot to join domain parts --- app/services/activitypub/process_account_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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) -- cgit