Add WebSub ping support for the entries-by-cat pages

This commit is contained in:
Danielle McLean 2017-11-20 11:21:28 +11:00
parent 8b00cf8a1a
commit de141bb697
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -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)