mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Merge branch 'master' into circular
* master: Upping page fill outs. Fixing user agent. Fixing PuSH by using the correct hub url. Thanks to @donmelton for finding the bug.
This commit is contained in:
commit
feb0916495
3 changed files with 5 additions and 5 deletions
|
@ -73,8 +73,8 @@ class PushSubscriptionManager(models.Manager):
|
|||
subscription = self.subscribe(extracted_topic.group(1),
|
||||
feed=feed, hub=hub, force_retry=True)
|
||||
else:
|
||||
logging.debug(u' ---> [%-30s] ~FR~BKFeed failed to subscribe to push: %s' % (
|
||||
unicode(subscription.feed)[:30], error))
|
||||
logging.debug(u' ---> [%-30s] ~FR~BKFeed failed to subscribe to push: %s (code: %s)' % (
|
||||
unicode(subscription.feed)[:30], error, response and response.status_code))
|
||||
|
||||
subscription.save()
|
||||
feed.setup_push()
|
||||
|
|
|
@ -74,8 +74,8 @@
|
|||
this.layout = {};
|
||||
this.constants = {
|
||||
FEED_REFRESH_INTERVAL: (1000 * 60) * 1, // 1 minute
|
||||
FILL_OUT_PAGES: 50,
|
||||
FIND_NEXT_UNREAD_STORY_TRIES: 50,
|
||||
FILL_OUT_PAGES: 100,
|
||||
FIND_NEXT_UNREAD_STORY_TRIES: 100,
|
||||
RIVER_STORIES_FOR_STANDARD_ACCOUNT: 5,
|
||||
MIN_FEED_LIST_SIZE: 206
|
||||
};
|
||||
|
|
|
@ -231,7 +231,7 @@ class ProcessFeed:
|
|||
hub_url = None
|
||||
self_url = self.feed.feed_address
|
||||
for link in self.fpf.feed.links:
|
||||
if link['rel'] == 'hub':
|
||||
if link['rel'] == 'hub' and not hub_url:
|
||||
hub_url = link['href']
|
||||
elif link['rel'] == 'self':
|
||||
self_url = link['href']
|
||||
|
|
Loading…
Add table
Reference in a new issue