Commit 2fc0f649 authored by dmorley's avatar dmorley

ignore uppercase in domain names

parent 33389506
Pipeline #801 passed with stage
in 4 minutes and 13 seconds
...@@ -7,4 +7,3 @@ require_once __DIR__ . '/../boot.php'; ...@@ -7,4 +7,3 @@ require_once __DIR__ . '/../boot.php';
use Carbon\Carbon; use Carbon\Carbon;
updateMeta('pods_updating', false); updateMeta('pods_updating', false);
...@@ -37,14 +37,14 @@ if ($pods = json_decode(file_get_contents('https://the-federation.info/graphql?q ...@@ -37,14 +37,14 @@ if ($pods = json_decode(file_get_contents('https://the-federation.info/graphql?q
//limiting to diaspora compatible for now //limiting to diaspora compatible for now
if (in_array('diaspora', $protocols, true)) { if (in_array('diaspora', $protocols, true)) {
$foundpods[] = preg_replace("(^https?://)", "", $poddata['host'] ); $foundpods[] = strtolower(preg_replace("(^https?://)", "", $poddata['host'] ));
} }
} }
} }
if ($pods = json_decode(file_get_contents('https://diasp.org/pods.json'), true)) { if ($pods = json_decode(file_get_contents('https://diasp.org/pods.json'), true)) {
foreach ($pods ?? [] as $poddata) { foreach ($pods ?? [] as $poddata) {
$foundpods[] = $poddata['host']; $foundpods[] = strtolower($poddata['host']);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment