Browse Source

Update Helpers, fix broken tests

Daniel Supernault 4 years ago
parent
commit
22dddaa044
1 changed files with 6 additions and 4 deletions
  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;
 			}
 			}