diff options
author | Mario <mario@mariovavti.com> | 2019-11-15 10:01:21 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-11-15 11:03:54 +0100 |
commit | 05604e4bd2f6491ebd567e8583acf820e5459514 (patch) | |
tree | 1f4d65ee4185e4e3e4dcc868d898fa696a108243 /Zotlabs/Daemon/Onepoll.php | |
parent | fd7d497cd1ba8846770425fc4dcb07c7cf5bbb85 (diff) | |
download | volse-hubzilla-05604e4bd2f6491ebd567e8583acf820e5459514.tar.gz volse-hubzilla-05604e4bd2f6491ebd567e8583acf820e5459514.tar.bz2 volse-hubzilla-05604e4bd2f6491ebd567e8583acf820e5459514.zip |
onepoll: do not update dead feeds
(cherry picked from commit 5a6b14f8787927ee6ea99c622d02875811d3a74a)
Diffstat (limited to 'Zotlabs/Daemon/Onepoll.php')
-rw-r--r-- | Zotlabs/Daemon/Onepoll.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Zotlabs/Daemon/Onepoll.php b/Zotlabs/Daemon/Onepoll.php index 1d9fd5f72..2f06ec125 100644 --- a/Zotlabs/Daemon/Onepoll.php +++ b/Zotlabs/Daemon/Onepoll.php @@ -61,11 +61,13 @@ class Onepoll { if($contact['xchan_network'] === 'rss') { logger('onepoll: processing feed ' . $contact['xchan_name'], LOGGER_DEBUG); - handle_feed($importer['channel_id'],$contact_id,$contact['xchan_hash']); - q("update abook set abook_connected = '%s' where abook_id = %d", - dbesc(datetime_convert()), - intval($contact['abook_id']) - ); + $alive = handle_feed($importer['channel_id'],$contact_id,$contact['xchan_hash']); + if ($alive) { + q("update abook set abook_connected = '%s' where abook_id = %d", + dbesc(datetime_convert()), + intval($contact['abook_id']) + ); + } return; } |