rev update, bug 428, 429, and ability to block globaldir submissions from demo sites

This commit is contained in:
friendica 2012-05-21 16:40:11 -07:00
parent 71fe343324
commit 54e2c1ca81
11 changed files with 205 additions and 66 deletions

View file

@ -24,6 +24,9 @@ function directory_run($argv, $argc){
load_config('system');
load_hooks();
$a->set_baseurl(get_config('system','url'));
$dir = get_config('system','directory_submit_url');
@ -31,7 +34,12 @@ function directory_run($argv, $argc){
if(! strlen($dir))
return;
fetch_url($dir . '?url=' . bin2hex($argv[1]));
$arr = array('url' => $argv[1]);
call_hooks('globaldir_update', $arr);
if(strlen($arr['url']))
fetch_url($dir . '?url=' . bin2hex($arr['url']));
return;
}