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

Found a bug? Tell us!!
Post Reply
DLange
Regular
Posts: 16
Joined: Fri Apr 11, 2008 1:16 am

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

Post by DLange » Fri Sep 25, 2020 6:47 am

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?

User avatar
onli
Regular
Posts: 2388
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

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

Post by onli » Fri Sep 25, 2020 11:20 pm

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.

Post Reply