Skip to content

Commit

Permalink
show if blogs are having a pubsubhub link
Browse files Browse the repository at this point in the history
(not used yet anywhere)
  • Loading branch information
planet-php committed Jan 8, 2010
1 parent c73fe01 commit 5485d09
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions libs/aggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand All @@ -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);
Expand Down

0 comments on commit 5485d09

Please sign in to comment.