gnucash-htdocs master: Fix atom feed validation errors.
John Ralls
jralls at code.gnucash.org
Mon Jul 8 19:50:52 EDT 2024
Updated via https://github.com/Gnucash/gnucash-htdocs/commit/0ae1d072 (commit)
from https://github.com/Gnucash/gnucash-htdocs/commit/e047fa5d (commit)
commit 0ae1d072abe83b4b47bec99f18c3d98cff5fcdcd
Author: John Ralls <jralls at ceridwen.us>
Date: Mon Jul 8 16:28:41 2024 -0700
Fix atom feed validation errors.
Adds content and summary tags to atom feed entries.
diff --git a/atom.php b/atom.php
index 7a90fc1..ba30b87 100644
--- a/atom.php
+++ b/atom.php
@@ -59,11 +59,14 @@ include("$newsdir/news-script.php");
$n = count($fa);
$title = strip_tags(chop($fa[0]));
$update_date = chop($fa[1]);
+ $summary = strip_tags(chop($fa[5]));
?>
<entry>
<id>urn:x-gnucash:news:<?= urlencode($key) ?></id>
<title><?= $title ?></title>
- <link rel="alternate" href="<?=\DEFAULT_URL?>news.phtml#n-<?=generate_anchor($key);?>" />
+ <summary><?= $summary ?></summary>
+ <content type="application/xhtml+html" src="<?=\DEFAULT_URL?>news.phtml#n-<?=generate_anchor($key);?>"/>
+ <link rel="alternate" href="<?=\DEFAULT_URL?>news.phtml#n-<?=generate_anchor($key);?>" />
<author>
<name>GnuCash Developers</name>
<email>gnucash-devel at gnucash.org</email>
Summary of changes:
atom.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list