From 0d2650b29b92943a1570896491865c12fd28fda8 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 30 Sep 2010 21:38:45 -0700 Subject: the rest of pubsubhubbub except for the UI that actually turns it on --- include/poller.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/poller.php') 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()), -- cgit v1.2.3