forked from mirror/pixelfed
Update Helpers, fix broken tests
This commit is contained in:
parent
37969da936
commit
22dddaa044
1 changed files with 6 additions and 4 deletions
|
@ -176,11 +176,13 @@ class Helpers {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(app()->environment() === 'production') {
|
||||||
$bannedInstances = InstanceService::getBannedDomains();
|
$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;
|
||||||
|
|
Loading…
Reference in a new issue