]> git.mxchange.org Git - friendica.git/blobdiff - include/poller.php
Merge remote-tracking branch 'upstream/develop' into 1509-i18n-events
[friendica.git] / include / poller.php
index 933624ecb57ef0621e3cfc4e6adac52c8b71cc8e..28dc0c0cde03748f926822923b6855d9b70aba4e 100644 (file)
@@ -36,6 +36,7 @@ function poller_run(&$argv, &$argc){
        require_once('include/email.php');
        require_once('include/socgraph.php');
        require_once('include/pidfile.php');
+       require_once('mod/nodeinfo.php');
 
        load_config('config');
        load_config('system');
@@ -82,6 +83,14 @@ function poller_run(&$argv, &$argc){
 
        proc_run('php',"include/dsprphotoq.php");
 
+       // run the process to discover global contacts in the background
+
+       proc_run('php',"include/discover_poco.php");
+
+       // run the process to update locally stored global contacts in the background
+
+       proc_run('php',"include/discover_poco.php", "checkcontact");
+
        // expire any expired accounts
 
        q("UPDATE user SET `account_expired` = 1 where `account_expired` = 0
@@ -103,7 +112,17 @@ function poller_run(&$argv, &$argc){
                $abandon_days = 0;
 
        // Check OStatus conversations
-       check_conversations();
+       // Check only conversations with mentions (for a longer time)
+       check_conversations(true);
+
+       // Check every conversation
+       check_conversations(false);
+
+       // Follow your friends from your legacy OStatus account
+       ostatus_check_follow_friends();
+
+       // update nodeinfo data
+       nodeinfo_cron();
 
        // To-Do: Regenerate usage statistics
        // q("ANALYZE TABLE `item`");