mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +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,11 +176,13 @@ class Helpers {
|
|||
}
|
||||
}
|
||||
|
||||
if(app()->environment() === 'production') {
|
||||
$bannedInstances = InstanceService::getBannedDomains();
|
||||
|
||||
if(in_array($host, $bannedInstances)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(in_array($host, $localhosts)) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue