Просмотр исходного кода

Update Helpers, fix broken tests

Daniel Supernault 4 лет назад
Родитель
Сommit
22dddaa044
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      app/Util/ActivityPub/Helpers.php

+ 6 - 4
app/Util/ActivityPub/Helpers.php

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