From: Simon McVittie <http://smcv.pseudorandom.co.uk/>
Date: Fri, 11 Jul 2008 22:47:00 +0000 (+0100)
Subject: rssitem.tmpl: use UUID as <guid> if supplied
X-Git-Tag: 2.54~124^2~1
X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/fc917fa3831bbea5305e50a8fde4457ff480ad64?ds=inline;hp=-c

rssitem.tmpl: use UUID as <guid> if supplied
---

fc917fa3831bbea5305e50a8fde4457ff480ad64
diff --git a/templates/rssitem.tmpl b/templates/rssitem.tmpl
index f22e5e3fb..4e2020269 100644
--- a/templates/rssitem.tmpl
+++ b/templates/rssitem.tmpl
@@ -5,7 +5,11 @@
 	<TMPL_ELSE>
 	<title><TMPL_VAR TITLE></title>
 	</TMPL_IF>
-	<guid><TMPL_VAR URL></guid>
+	<TMPL_IF NAME="UUID">
+	  <guid isPermaLink="no"><TMPL_VAR UUID></guid>
+	<TMPL_ELSE>
+	  <guid><TMPL_VAR URL></guid>
+	</TMPL_IF>
 	<link><TMPL_VAR PERMALINK></link>
 	<TMPL_IF NAME="CATEGORIES">
 	<TMPL_LOOP NAME="CATEGORIES">