mirror of
				https://github.com/samuelclay/NewsBlur.git
				synced 2025-10-31 08:41:36 +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: |             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() | ||||||
|         feed.setup_push() |         feed.setup_push() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Samuel Clay
						Samuel Clay