update timestamps on successful poll

This commit is contained in:
friendica 2012-12-30 23:55:57 -08:00
parent 2d113f0c87
commit ba0876d011

View File

@ -51,10 +51,9 @@ function onepoll_run($argv, $argc){
return;
$contact = $contacts[0];
$t = $contact['abook_updated'];
$importer_uid = $contact['abook_channel'];
$r = q("SELECT * from channel left join xchan on channel_hash = xchan_hash where channel_id = %d limit 1",
@ -82,6 +81,10 @@ function onepoll_run($argv, $argc){
}
else {
q("update abook set abook_updated = '%s' where abook_id = %d limit 1",
dbesc(datetime_convert()),
intval($contact['abook_id'])
);
// if marked for death, reset