Forgot to urlencode the list of URLs posted up to Superfeedr
This commit is contained in:
parent
45298abb98
commit
475302eb07
1 changed files with 2 additions and 1 deletions
|
@ -1,11 +1,12 @@
|
|||
import requests
|
||||
from django.conf import settings
|
||||
from django_rq import job
|
||||
from urllib.parse import urlencode
|
||||
|
||||
|
||||
@job
|
||||
def ping_hub(*urls):
|
||||
requests.post(settings.PUSH_HUB, data={
|
||||
'hub.mode': 'publish',
|
||||
'hub.url': ','.join(urls),
|
||||
'hub.url': ','.join(map(urlencode, urls)),
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue