From de141bb697c946866fdccc72e320069e5c8fb967 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 20 Nov 2017 11:21:28 +1100 Subject: [PATCH] Add WebSub ping support for the entries-by-cat pages --- micropub/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micropub/views.py b/micropub/views.py index e3c3e93..981b5fd 100644 --- a/micropub/views.py +++ b/micropub/views.py @@ -57,14 +57,14 @@ class MicropubView(View): base = utils.origin(request) perma = urljoin(base, entry.url) - others = (urljoin(base, url) for url in ( + others = [urljoin(base, url) for url in ( reverse('home:index'), reverse('entries:atom'), reverse('entries:rss'), reverse('entries:' + kind.index), reverse('entries:' + kind.atom), reverse('entries:' + kind.rss), - )) + )] + [urljoin(base, cat.url) for cat in cats] ping_hub.delay(perma, *others) send_mentions.delay(perma)