From 0a202a215dbe8cd4ac2f0c78be6fe9264af5a1a1 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Wed, 1 Nov 2017 11:09:12 +1100 Subject: [PATCH] Include references to the Atom and RSS feeds in the host-meta --- wellknowns/views/host_meta.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wellknowns/views/host_meta.py b/wellknowns/views/host_meta.py index 3079708..52e5432 100644 --- a/wellknowns/views/host_meta.py +++ b/wellknowns/views/host_meta.py @@ -24,6 +24,14 @@ def add_links(request, dest): href=urljoin(base, reverse('wellknowns:manifest')), rel='manifest', type_='application/json', ), + Link( + href=urljoin(base, reverse('entries:atom')), + rel='alternate', type_='application/atom+xml', + ), + Link( + href=urljoin(base, reverse('entries:rss')), + rel='alternate', type_='application/rss+xml', + ), Link(href=license, type_='text/html', rel='license'), Link(href=license+'rdf', type_='application/rdf+xml', rel='license'), Link(href=pkg['repository'], type_='text/html', rel='code-repository'),