Page 1 of 1

Atom feed updates the "updated" date of posts on comments

Posted: Fri Sep 25, 2020 6:47 am
by DLange
The Atom feed (2k11 template) updates the <updated> field when a new comment is received. This makes Planet software bump the post up and that seems wrong.

Cf. https://daniel-lange.com/archives/164-G ... .html#c700

Can the "update" date please only be changed when the post itself was updated?

Re: Atom feed updates the "updated" date of posts on comments

Posted: Fri Sep 25, 2020 11:20 pm
by onli
The code responsible for this is in the functions_comments.inc.php. There is some code there to limit how often it is changed, but I'm not sure why the last_modified value of an entry is changed at all because of someone commenting. Maybe because of a feature to embed comments or their count into the RSS feed?

You can configure this: The serendipity_config.inc.php sets the value to this:

Code: Select all

$serendipity['max_last_modified'] = 60 * 60 * 24 * 7;
Setting it to 0 or a small value like 1 should disable the feature. You can add that to your serendipity_config_local.inc.php.

But maybe we can disable this in future versions completely.