mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Dealing with broken Wordpress PuSH plugin by subscribing to its requested topic url.
This commit is contained in:
parent
5a60b1047f
commit
06a11d5fb4
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ class PushSubscriptionManager(models.Manager):
|
|||
if not force_retry and 'You may only subscribe to' in error:
|
||||
extracted_topic = re.search("You may only subscribe to (.*?) ", error)
|
||||
if extracted_topic:
|
||||
subscription = self.objects.subscribe(extracted_topic.group(1),
|
||||
feed=feed, hub=hub, force_retry=True)
|
||||
subscription = self.subscribe(extracted_topic.group(1),
|
||||
feed=feed, hub=hub, force_retry=True)
|
||||
|
||||
subscription.save()
|
||||
feed.setup_push()
|
||||
|
|
Loading…
Add table
Reference in a new issue