Permalink
Browse files

show if blogs are having a pubsubhub link

(not used yet anywhere)
  • Loading branch information...
1 parent c73fe01 commit 5485d09d16c7aea71523fd818414c3a019e297b3 planet-php committed Jan 8, 2010
Showing with 9 additions and 3 deletions.
  1. +9 −3 libs/aggregator.php
View
@@ -54,8 +54,11 @@ function aggregateAllBlogs($id = null) {
$feed->channel[$k] = $v;
}
}
- }
- if (!$feed->channel['link']) {
+ }
+
+
+
+ if (!$feed->channel['link']) {
if (isset($feed->channel['link_'])) {
$feed->channel['link'] = $feed->channel['link_'];
} else if (isset($feed->channel['link_self'])) {
@@ -66,8 +69,11 @@ function aggregateAllBlogs($id = null) {
print "NO channel/link... PLEASE FIX THIS\n";
continue;
}
+
+ }
+ if (isset($feed->channel['link_hub'])) {
+ print "pubsubhubbub found in ".$feed->channel['link'] ." to " . $feed->channel['link_hub'] . "\n";
}
-
$blog = $this->getBlogEntry($feed->channel['link']);
if (!$blog) {
$id = $this->insertBlogEntry($feed->channel);

0 comments on commit 5485d09

Please sign in to comment.