Update Helpers, fix broken tests

This commit is contained in:
Daniel Supernault 2021-04-29 23:39:38 -06:00
parent 37969da936
commit 22dddaa044
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -176,12 +176,14 @@ class Helpers {
} }
} }
$bannedInstances = InstanceService::getBannedDomains(); if(app()->environment() === 'production') {
$bannedInstances = InstanceService::getBannedDomains();
if(in_array($host, $bannedInstances)) { if(in_array($host, $bannedInstances)) {
return false; return false;
}
} }
if(in_array($host, $localhosts)) { if(in_array($host, $localhosts)) {
return false; return false;
} }