aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-12 21:54:15 -0700
committerfriendica <info@friendica.com>2013-09-12 21:54:15 -0700
commite9ea80f2f62a2ab53f5b6d74792de6b08fd98a03 (patch)
treef11cf31b53abd55fa343adc0b86bf2febb99f105 /include/poller.php
parent3a2d11bde1581b8ee1e2a07c04370ce9eae9ea55 (diff)
downloadvolse-hubzilla-e9ea80f2f62a2ab53f5b6d74792de6b08fd98a03.tar.gz
volse-hubzilla-e9ea80f2f62a2ab53f5b6d74792de6b08fd98a03.tar.bz2
volse-hubzilla-e9ea80f2f62a2ab53f5b6d74792de6b08fd98a03.zip
No point beating a dead horse
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php
index bdb0388ac..f084005c7 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -158,7 +158,7 @@ function poller_run($argv, $argc){
);
- $contacts = q("SELECT abook_id, abook_updated, abook_connected, abook_closeness, abook_channel
+ $contacts = q("SELECT abook_id, abook_flags, abook_updated, abook_connected, abook_closeness, abook_channel
FROM abook LEFT JOIN account on abook_account = account_id where 1
$sql_extra
AND (( abook_flags = %d ) OR ( abook_flags = %d ))
@@ -210,6 +210,11 @@ function poller_run($argv, $argc){
continue;
}
+ if($contact['abook_flags'] & ABOOK_FLAG_ARCHIVED) {
+ $update = false;
+ continue;
+ }
+
// might be dead, so maybe don't poll quite so often
// recently deceased, so keep up the regular schedule for 3 days
@@ -223,6 +228,8 @@ function poller_run($argv, $argc){
if(strcmp(datetime_convert('UTC','UTC', 'now'),datetime_convert('UTC','UTC', $t . " + 2 day")) > 0) {
$update = true;
}
+
+
}
if((! $update) && (! $force))