No point beating a dead horse

This commit is contained in:
friendica 2013-09-12 21:54:15 -07:00
parent 3a2d11bde1
commit e9ea80f2f6

View File

@ -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 FROM abook LEFT JOIN account on abook_account = account_id where 1
$sql_extra $sql_extra
AND (( abook_flags = %d ) OR ( abook_flags = %d )) AND (( abook_flags = %d ) OR ( abook_flags = %d ))
@ -210,6 +210,11 @@ function poller_run($argv, $argc){
continue; continue;
} }
if($contact['abook_flags'] & ABOOK_FLAG_ARCHIVED) {
$update = false;
continue;
}
// might be dead, so maybe don't poll quite so often // might be dead, so maybe don't poll quite so often
// recently deceased, so keep up the regular schedule for 3 days // 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) { if(strcmp(datetime_convert('UTC','UTC', 'now'),datetime_convert('UTC','UTC', $t . " + 2 day")) > 0) {
$update = true; $update = true;
} }
} }
if((! $update) && (! $force)) if((! $update) && (! $force))