mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-11-11 00:42:18 +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,7 +68,7 @@ class PushSubscriptionManager(models.Manager):
|
||||||
if not force_retry and 'You may only subscribe to' in error:
|
if not force_retry and 'You may only subscribe to' in error:
|
||||||
extracted_topic = re.search("You may only subscribe to (.*?) ", error)
|
extracted_topic = re.search("You may only subscribe to (.*?) ", error)
|
||||||
if extracted_topic:
|
if extracted_topic:
|
||||||
subscription = self.objects.subscribe(extracted_topic.group(1),
|
subscription = self.subscribe(extracted_topic.group(1),
|
||||||
feed=feed, hub=hub, force_retry=True)
|
feed=feed, hub=hub, force_retry=True)
|
||||||
|
|
||||||
subscription.save()
|
subscription.save()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue