Set a default directory server from a hard-wired list if one was not previously chosen.

This commit is contained in:
friendica
2014-04-25 18:10:23 -07:00
parent d6620522c2
commit 3e8e67df2c
8 changed files with 39 additions and 45 deletions

View File

@@ -48,13 +48,7 @@ function directory_run($argv, $argc){
}
$directory = find_upstream_directory($dirmode);
if($directory) {
$url = $directory['url'] . '/post';
}
else {
$url = DIRECTORY_FALLBACK_MASTER . '/post';
}
$url = $directory['url'] . '/post';
// ensure the upstream directory is updated