Use the current timestamp for feed-level 'updated' in 'Handler_Public#generate_syndicated_feed()'.

The last article's 'updated' value was not a good indicator of when the feed updated for various reasons, so we'll just use the current timestamp to represent the dynamic nature of the content.
This commit is contained in:
wn_ 2025-06-02 21:17:21 +00:00
parent 446f9dcb23
commit 814ab48169
2 changed files with 2 additions and 1 deletions

View File

@ -88,6 +88,7 @@ class Handler_Public extends Handler {
$tpl->readTemplateFromFile("generated_feed.txt");
$tpl->setVariable('FEED_TITLE', $feed_title, true);
$tpl->setVariable('FEED_UPDATED', date('c'), true);
$tpl->setVariable('VERSION', Config::get_version(), true);
$tpl->setVariable('FEED_URL', htmlspecialchars($feed_self_url), true);

View File

@ -3,7 +3,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<title>${FEED_TITLE}</title>
<generator uri="http://tt-rss.org/">Tiny Tiny RSS/${VERSION}</generator>
<updated>${ARTICLE_UPDATED_ATOM}</updated>
<updated>${FEED_UPDATED}</updated>
<id>${FEED_URL}</id>
<link href="${FEED_URL}" rel="self"/>
<!-- $BeginBlock feed_hub -->