gnucash-htdocs beta: Fix atom feed validation errors.

John Ralls jralls at code.gnucash.org
Mon Jul 8 19:50:25 EDT 2024


  discards  https://github.com/Gnucash/gnucash-htdocs/commit/ec68df79 (commit)
Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/3e6dff7e (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (https://github.com/Gnucash/gnucash-htdocs/commit/ec68df79)
            \
             N -- N -- N (https://github.com/Gnucash/gnucash-htdocs/commit/3e6dff7e)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.



commit 3e6dff7ec8e634b1df8536a931b97bdefb6e118d
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:
 externals/global_params.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list