Commit 2fc0f649 authored by David Morley's avatar David Morley

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';
use Carbon\Carbon;
updateMeta('pods_updating', false);
......@@ -37,14 +37,14 @@ if ($pods = json_decode(file_get_contents('https://the-federation.info/graphql?q
//limiting to diaspora compatible for now
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)) {
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