From 5e524cb4f2d3db5f07bc3658fdcfede88ae2b749 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 19 Dec 2017 15:44:42 +1100 Subject: [PATCH] Process the WebSub pings for each feed separately, because the hub.url[] syntax doesn't seem to actually work --- entries/jobs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/entries/jobs.py b/entries/jobs.py index 77664d9..7704095 100644 --- a/entries/jobs.py +++ b/entries/jobs.py @@ -6,8 +6,11 @@ from ronkyuu import webmention @job def ping_hub(*urls): - data = [('hub.mode', 'publish')] + [('hub.url[]', url) for url in urls] - requests.post(settings.PUSH_HUB, data=data) + for url in urls: + requests.post(settings.PUSH_HUB, data={ + 'hub.mode': 'publish', + 'hub.url': url, + }) @job