use pubsub infos from fetched feed, not the existing feed

This commit is contained in:
Athou
2013-06-10 13:22:45 +02:00
parent 2baa2bbfe5
commit 6b99489fcb

View File

@@ -110,7 +110,7 @@ public class FeedRefreshWorker {
feed.setMessage(null);
feed.setDisabledUntil(disabledUntil);
handlePubSub(feed);
handlePubSub(feed, fetchedFeed.getFeed());
feedRefreshUpdater.updateFeed(feed, entries);
} catch (NotModifiedException e) {
@@ -145,9 +145,9 @@ public class FeedRefreshWorker {
}
}
private void handlePubSub(Feed feed) {
String hub = feed.getPushHub();
String topic = feed.getPushTopic();
private void handlePubSub(Feed feed, Feed fetchedFeed) {
String hub = fetchedFeed.getPushHub();
String topic = fetchedFeed.getPushTopic();
if (hub != null && topic != null) {
if (hub.contains("hubbub.api.typepad.com")) {
// that hub does not exist anymore