mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
use pubsub infos from fetched feed, not the existing feed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user