mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Turning off PuSH if no hub url found.
This commit is contained in:
parent
bdd60bf3f7
commit
e4fc8b6c49
1 changed files with 5 additions and 0 deletions
|
@ -242,6 +242,11 @@ class ProcessFeed:
|
|||
self.feed.title[:30],
|
||||
"~SKRe-~SN" if push_expired else "", hub_url))
|
||||
PushSubscription.objects.subscribe(self_url, feed=self.feed, hub=hub_url)
|
||||
elif self.feed.is_push and not hub_url:
|
||||
logging.debug(u' ---> [%-30s] ~BB~FWTurning off PuSH, no hub found' % (
|
||||
self.feed.title[:30]))
|
||||
self.feed.is_push = False
|
||||
self.feed = self.feed.save()
|
||||
|
||||
logging.debug(u' ---> [%-30s] ~FYParsed Feed: %snew=%s~SN~FY %sup=%s~SN same=%s%s~SN %serr=%s~SN~FY total=~SB%s' % (
|
||||
self.feed.title[:30],
|
||||
|
|
Loading…
Add table
Reference in a new issue