aboutsummaryrefslogtreecommitdiffstats
path: root/include/cli_suggest.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-05 20:08:35 -0700
committerfriendica <info@friendica.com>2013-08-05 20:08:35 -0700
commitc2f97f7490cd96e92432ca6c397dce2f6ab80eaa (patch)
tree72cbdda90fc9979fd8955a47a28b2895b4af5abd /include/cli_suggest.php
parent089e915be13707db129c1043d3b914333c296acc (diff)
downloadvolse-hubzilla-c2f97f7490cd96e92432ca6c397dce2f6ab80eaa.tar.gz
volse-hubzilla-c2f97f7490cd96e92432ca6c397dce2f6ab80eaa.tar.bz2
volse-hubzilla-c2f97f7490cd96e92432ca6c397dce2f6ab80eaa.zip
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).
Diffstat (limited to 'include/cli_suggest.php')
-rw-r--r--include/cli_suggest.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/cli_suggest.php b/include/cli_suggest.php
new file mode 100644
index 000000000..321ffd2e0
--- /dev/null
+++ b/include/cli_suggest.php
@@ -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();
+}
+