diff --git a/app/services/unblock_domain_service.rb b/app/services/unblock_domain_service.rb index fdd0278272d..ebb25c869a4 100644 --- a/app/services/unblock_domain_service.rb +++ b/app/services/unblock_domain_service.rb @@ -16,9 +16,9 @@ class UnblockDomainService < BaseService def blocked_accounts scope = Account.where(domain: domain_block.domain) if domain_block.silence? - scope.where(silenced_at: @domain_block.created_at) + scope.where(silenced_at: [@domain_block.created_at, nil]) else - scope.where(suspended_at: @domain_block.created_at) + scope.where(suspended_at: [@domain_block.created_at, nil]) end end