forked from 00dani/lemoncurry
Process the WebSub pings for each feed separately, because the hub.url[] syntax doesn't seem to actually work
This commit is contained in:
parent
778bd7d872
commit
5e524cb4f2
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue