Skip to content

Commit

Permalink
Also unblock users who were suspended/silenced before dates were reco…
Browse files Browse the repository at this point in the history
…rded
  • Loading branch information
ClearlyClaire committed May 11, 2019
1 parent 30296f1 commit a015c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/unblock_domain_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def process_retroactive_updates
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

Expand Down

0 comments on commit a015c65

Please sign in to comment.