pubsubhubbub tweaks

This commit is contained in:
Athou
2013-05-23 11:18:07 +02:00
parent acb6b65dfe
commit 8f43d8d1bd

View File

@@ -137,6 +137,13 @@ public class FeedRefreshWorker {
String hub = fetchedFeed.getHub();
String topic = fetchedFeed.getTopic();
if (hub != null && topic != null) {
if (hub.contains("hubbub.api.typepad.com")) {
// that hub does not exist anymore
return;
}
if (topic.startsWith("www.")) {
topic = "http://" + topic;
}
log.debug("feed {} has pubsub info: {}", feed.getUrl(), topic);
FeedPushInfo info = feed.getPushInfo();
if (info == null) {