From a015c65d2d1e28c7b7cfab8b3f8cd5fb48b8b71c Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Wed, 1 May 2019 12:04:33 +0200 Subject: [PATCH] Also unblock users who were suspended/silenced before dates were recorded --- app/services/unblock_domain_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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