mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update Helpers, fix broken tests
This commit is contained in:
parent
37969da936
commit
22dddaa044
1 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue