mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 01:25:21 +02:00
rev update, bug 428, 429, and ability to block globaldir submissions from demo sites
This commit is contained in:
parent
71fe343324
commit
54e2c1ca81
11 changed files with 205 additions and 66 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue