populate initial suggestions (ultimately we want to do this at install time as well as from the poller so that new sites have friend suggestions when they create their first channel).
This commit is contained in:
22
include/cli_suggest.php
Normal file
22
include/cli_suggest.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php /** @file */
|
||||
|
||||
require_once('boot.php');
|
||||
require_once('include/cli_startup.php');
|
||||
require_once('include/socgraph.php');
|
||||
|
||||
|
||||
function cli_suggest_run($argv, $argc){
|
||||
|
||||
cli_startup();
|
||||
|
||||
$a = get_app();
|
||||
|
||||
update_suggestions();
|
||||
|
||||
}
|
||||
|
||||
if (array_search(__file__,get_included_files())===0){
|
||||
cli_suggest_run($argv,$argc);
|
||||
killme();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user