forked from 00dani/lemoncurry
Add WebSub ping support for the entries-by-cat pages
This commit is contained in:
parent
8b00cf8a1a
commit
de141bb697
1 changed files with 2 additions and 2 deletions
|
@ -57,14 +57,14 @@ class MicropubView(View):
|
||||||
|
|
||||||
base = utils.origin(request)
|
base = utils.origin(request)
|
||||||
perma = urljoin(base, entry.url)
|
perma = urljoin(base, entry.url)
|
||||||
others = (urljoin(base, url) for url in (
|
others = [urljoin(base, url) for url in (
|
||||||
reverse('home:index'),
|
reverse('home:index'),
|
||||||
reverse('entries:atom'),
|
reverse('entries:atom'),
|
||||||
reverse('entries:rss'),
|
reverse('entries:rss'),
|
||||||
reverse('entries:' + kind.index),
|
reverse('entries:' + kind.index),
|
||||||
reverse('entries:' + kind.atom),
|
reverse('entries:' + kind.atom),
|
||||||
reverse('entries:' + kind.rss),
|
reverse('entries:' + kind.rss),
|
||||||
))
|
)] + [urljoin(base, cat.url) for cat in cats]
|
||||||
ping_hub.delay(perma, *others)
|
ping_hub.delay(perma, *others)
|
||||||
send_mentions.delay(perma)
|
send_mentions.delay(perma)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue