Merge pull request #2929 from annando/1611-onepoll-priority

Polling feeds is now done with a higher priority.
This commit is contained in:
Tobias Diekershoff 2016-11-18 07:20:27 +01:00 committed by GitHub
commit 23bc0eae29

View File

@ -325,7 +325,7 @@ function cron_poll_contacts($argc, $argv) {
logger("Polling ".$contact["network"]." ".$contact["id"]." ".$contact["nick"]." ".$contact["name"]);
if ($contact["remote_self"]) {
if (($contact['network'] == NETWORK_FEED) AND ($contact['priority'] <= 3)) {
proc_run(PRIORITY_MEDIUM, 'include/onepoll.php', $contact['id']);
} else {
proc_run(PRIORITY_LOW, 'include/onepoll.php', $contact['id']);