aboutsummaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-24 21:53:10 +0200
committerThomas Lange <code@nerdmind.de>2021-07-24 22:18:07 +0200
commit3037af3a80246870284e7c1ab52f407a081f5ffd (patch)
tree01bc9555c881c8fe73e3c0b32400f68dfe675bf9 /theme
parent434c48cff635317e51286e9bf2f1681feb48bf4b (diff)
downloadblog-3037af3a80246870284e7c1ab52f407a081f5ffd.tar.gz
blog-3037af3a80246870284e7c1ab52f407a081f5ffd.tar.xz
blog-3037af3a80246870284e7c1ab52f407a081f5ffd.zip
Create feed item's GUID manually in template file
Do not rely on the "$POST['GUID']" template parameter anymore and create the GUID for the feed item manually in the feed item's template file. The application internal function "generatePseudoGUID" has been removed and the function "generateItemTemplateData" will not return the "GUID" part anymore (which was only used by the feed item template anyway). For backward compatibility, the "$POST['GUID']" template parameter will still be present in the feed item template, but not in other templates!
Diffstat (limited to 'theme')
-rw-r--r--theme/default/html/feed/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/default/html/feed/item.php b/theme/default/html/feed/item.php
index 0bf23fc..088aa34 100644
--- a/theme/default/html/feed/item.php
+++ b/theme/default/html/feed/item.php
@@ -12,7 +12,7 @@ $HTML = $POST['BODY']['HTML']();
<item>
<title><?=escapeHTML($POST['ATTR']['NAME'])?></title>
<link><?=$POST['URL']?></link>
- <guid isPermaLink="false"><?=$POST['GUID']?></guid>
+ <guid isPermaLink="false"><?=sha1($POST['ATTR']['ID'].$POST['ATTR']['TIME_INSERT']);?></guid>
<pubDate><?=parseDatetime($POST['ATTR']['TIME_INSERT'], '[RFC2822]')?></pubDate>
<dc:creator><?=escapeHTML($USER['ATTR']['FULLNAME'])?></dc:creator>
<description><?=escapeHTML(description($HTML, 400))?></description>