Commit 31c289cf authored by dmorley's avatar dmorley

Fix crawler with some url issues

parent 40ea271c
......@@ -37,7 +37,7 @@ 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[] = $poddata['host'];
$foundpods[] = preg_replace("(^https?://)", "", $poddata['host'] );
}
}
}
......@@ -50,7 +50,7 @@ if ($pods = json_decode(file_get_contents('https://diasp.org/pods.json'), true))
$results = array_diff($foundpods, $existingpods);
foreach ($results as $result) {
echo $result . ' ';
echo ' domain ' . $result . ' trying... ';
echo exec("php-cgi add.php domain={$result}") . "\r\n";
}
......
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