mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-05 21:57:24 +02:00
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:
parent
446f9dcb23
commit
814ab48169
@ -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);
|
||||
|
||||
|
@ -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 -->
|
||||
|
Loading…
Reference in New Issue
Block a user