From 475302eb079a030bf3754bab11564f2d4c55c0b2 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 6 Nov 2017 11:49:43 +1100 Subject: [PATCH] Forgot to urlencode the list of URLs posted up to Superfeedr --- entries/jobs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entries/jobs.py b/entries/jobs.py index c2c7d46..f20d013 100644 --- a/entries/jobs.py +++ b/entries/jobs.py @@ -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)), })