gnucash-htdocs beta: Add content tag to atom feed entries.

John Ralls jralls at code.gnucash.org
Mon Jul 8 19:42:34 EDT 2024


  discards  https://github.com/Gnucash/gnucash-htdocs/commit/0f6f9bcf (commit)
Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/fb800b4a (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/0f6f9bcf)
            \
             N -- N -- N (https://github.com/Gnucash/gnucash-htdocs/commit/fb800b4a)

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 fb800b4ae1d790440d94b2b9163f6b34bf4cf8ee
Author: John Ralls <jralls at ceridwen.us>
Date:   Mon Jul 8 16:28:41 2024 -0700

    Add content tag to atom feed entries.

diff --git a/atom.php b/atom.php
index 7a90fc1..01032e0 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="xhtml" 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>
diff --git a/externals/global_params.php b/externals/global_params.php
index 61ccd3d..7bc4f7e 100644
--- a/externals/global_params.php
+++ b/externals/global_params.php
@@ -79,7 +79,7 @@
      $latest_unstable_source="gnucash-".$latest_unstable.".tar.bz2";
 
      // The URLs, we use:
-     define("DEFAULT_URL", "https://www.gnucash.org/"); // The main webserver
+     define("DEFAULT_URL", "https://www.gnucash.org/beta"); // The main webserver
      define("SERVER_BUILD", "code.gnucash.org"); // alias The GIMPNet
      define("URL_BUILD", "https://".\SERVER_BUILD."/");
      define("URL_DOCS", \URL_BUILD."docs/");



Summary of changes:
 atom.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list