From 06742f69b74f9abe456298be8c4cef289750e983 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Thu, 13 Dec 2012 16:54:34 -0800 Subject: [PATCH] rss: Add atom:link rel="self" to RSS feeds. This is recommended by the W3C RSS feed validator: http://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html --- r2/r2/templates/base.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/r2/r2/templates/base.xml b/r2/r2/templates/base.xml index a14953334..2057d54a1 100644 --- a/r2/r2/templates/base.xml +++ b/r2/r2/templates/base.xml @@ -26,7 +26,8 @@ from r2.lib.template_helpers import get_domain, add_sr %> + xmlns:media="http://search.yahoo.com/mrss/" + xmlns:atom="http://www.w3.org/2005/Atom"> ${self.Title()} ${add_sr("/", force_hostname = True)} @@ -44,6 +45,7 @@ ${self.Title()} ${add_sr("/", force_hostname = True)} + ${next.body()}