diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-30 21:38:45 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-30 21:38:45 -0700 |
commit | 0d2650b29b92943a1570896491865c12fd28fda8 (patch) | |
tree | 5c9d30c87aeee1a92bc729ab9546c32033d11a43 /include/poller.php | |
parent | 632c5570086bdfd8c8a311ccec44648697a8ef8b (diff) | |
download | volse-hubzilla-0d2650b29b92943a1570896491865c12fd28fda8.tar.gz volse-hubzilla-0d2650b29b92943a1570896491865c12fd28fda8.tar.bz2 volse-hubzilla-0d2650b29b92943a1570896491865c12fd28fda8.zip |
the rest of pubsubhubbub except for the UI that actually turns it on
Diffstat (limited to 'include/poller.php')
-rw-r--r-- | include/poller.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php index b9ef0d93a..fc77946f9 100644 --- a/include/poller.php +++ b/include/poller.php @@ -161,7 +161,13 @@ continue; - consume_feed($xml,$importer,$contact); + consume_feed($xml,$importer,$contact,$hub); + + + if($contact['usehub'] && strlen($hub)) { + subscribe_to_hub($hub,$importer,$contact); + } + $r = q("UPDATE `contact` SET `last-update` = '%s' WHERE `id` = %d LIMIT 1", dbesc(datetime_convert()), |