aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-03-10 11:29:40 +0100
committerMichael Vogel <icarus@dabo.de>2012-03-10 11:29:40 +0100
commite098147c24bd45bc15c14fc597bd101b66011458 (patch)
tree7b26846d2f59883781bd77810e0d15f964d5874b /include/poller.php
parent15916a2cb717828367fc7e0bb74137942836a772 (diff)
downloadvolse-hubzilla-e098147c24bd45bc15c14fc597bd101b66011458.tar.gz
volse-hubzilla-e098147c24bd45bc15c14fc597bd101b66011458.tar.bz2
volse-hubzilla-e098147c24bd45bc15c14fc597bd101b66011458.zip
New config options if ostatus polling should use the priority in the contacts
Diffstat (limited to 'include/poller.php')
-rwxr-xr-xinclude/poller.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php
index 3be6caebd..f165ad590 100755
--- a/include/poller.php
+++ b/include/poller.php
@@ -140,7 +140,10 @@ function poller_run($argv, $argc){
if($manual_id)
$contact['last-update'] = '0000-00-00 00:00:00';
- if($contact['network'] === NETWORK_DFRN || $contact['network'] === NETWORK_OSTATUS)
+ if($contact['network'] === NETWORK_DFRN)
+ $contact['priority'] = 2;
+
+ if(!get_config('system','ostatus_use_priority') and ($contact['network'] === NETWORK_OSTATUS))
$contact['priority'] = 2;
if($contact['priority'] || $contact['subhub']) {