]> git.mxchange.org Git - friendica-addons.git/commitdiff
Force priority for Twitter synchronisation
authorMichael <heluecht@pirati.ca>
Sun, 3 Mar 2019 04:47:16 +0000 (04:47 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 3 Mar 2019 04:47:16 +0000 (04:47 +0000)
twitter/twitter.php

index 66fe1bf6a81df4f9d18ced8915dee9fa47de599a..e343dd24a377aee06c69dee57d7f5a8db600ccb9 100644 (file)
@@ -739,7 +739,7 @@ function twitter_cron(App $a)
        if (DBA::isResult($r)) {
                foreach ($r as $rr) {
                        Logger::log('twitter: fetching for user ' . $rr['uid']);
-                       Worker::add(PRIORITY_MEDIUM, "addon/twitter/twitter_sync.php", 1, (int) $rr['uid']);
+                       Worker::add(['priority' => PRIORITY_MEDIUM, 'force_priority' => true], "addon/twitter/twitter_sync.php", 1, (int) $rr['uid']);
                }
        }
 
@@ -762,7 +762,7 @@ function twitter_cron(App $a)
                        }
 
                        Logger::log('twitter: importing timeline from user ' . $rr['uid']);
-                       Worker::add(PRIORITY_MEDIUM, "addon/twitter/twitter_sync.php", 2, (int) $rr['uid']);
+                       Worker::add(['priority' => PRIORITY_MEDIUM, 'force_priority' => true], "addon/twitter/twitter_sync.php", 2, (int) $rr['uid']);
                        /*
                          // To-Do
                          // check for new contacts once a day