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.setMessage(null);
|
||||||
feed.setDisabledUntil(disabledUntil);
|
feed.setDisabledUntil(disabledUntil);
|
||||||
|
|
||||||
handlePubSub(feed);
|
handlePubSub(feed, fetchedFeed.getFeed());
|
||||||
feedRefreshUpdater.updateFeed(feed, entries);
|
feedRefreshUpdater.updateFeed(feed, entries);
|
||||||
|
|
||||||
} catch (NotModifiedException e) {
|
} catch (NotModifiedException e) {
|
||||||
@@ -145,9 +145,9 @@ public class FeedRefreshWorker {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handlePubSub(Feed feed) {
|
private void handlePubSub(Feed feed, Feed fetchedFeed) {
|
||||||
String hub = feed.getPushHub();
|
String hub = fetchedFeed.getPushHub();
|
||||||
String topic = feed.getPushTopic();
|
String topic = fetchedFeed.getPushTopic();
|
||||||
if (hub != null && topic != null) {
|
if (hub != null && topic != null) {
|
||||||
if (hub.contains("hubbub.api.typepad.com")) {
|
if (hub.contains("hubbub.api.typepad.com")) {
|
||||||
// that hub does not exist anymore
|
// that hub does not exist anymore
|
||||||
|
|||||||
Reference in New Issue
Block a user