Changing ownership updates timestamp

AI-generated summary

roarkely reported that updating the owner of a post incorrectly updates the topic’s timestamp, causing old imported topics to bump to the front page during account cleanup. They suggested adding an option to the change ownership modal to preserve the original timestamp if this behavior is intentional. sam argued that editing post ownership should be treated as a non-bumping action, similar to other metadata edits, and proposed making this configurable via a site setting. codinghorror initially questioned the logic, asking why changing an owner would affect the timestamp, while sam clarified that the underlying code path (postrevisor) treats these changes similarly, leading to the unexpected bump. Ultimately, sam confirmed that the issue was fixed in a specific commit and noted that roarkely would deploy the update once the build process completed.

When you update the owner of a post, it updates the timestamp for that topic.

This was an expected behavior that felt like a bug. If this is not a bug, I suggest we add an option to the change ownership modal dialog to leave the timestamp as-is.

Background
We imported a lot of historical conversations into our Discourse instance. Because of the platform we came from, that included a bunch of duplicate user accounts. As part of a general cleanup, we were de-duping those user accounts and changed ownership of posts. That pushed old topics up to the front page. We had to go back and re-adjust the timestamps for all these topics back to get them back in their expected chronological order.

1 Like

@codinghorror this just keeps coming back over and over. Perhaps the default should be that owner,tag,category,title edits on OP for 1 post topics are always non bumping, configurable via site setting ?

1 Like

This isn’t what’s being discussed is it?

When you update the owner of a post, it updates the timestamp for that topic.

Changing the owner of a post is a different function than what you’re talking about @sam.

It’s the same thing, postrevisor does the editing of owner, and same class of change, mod steps in to reorganize old content, same “bug” unexpected bump on topics

I guess this is a bit wider cause it can also be last post in topic

Not really, why would changing owner change timestamp? That’s just weird.

1 Like

Fixed per:

https://github.com/discourse/discourse/commit/8577b7e2cc773c5e0cb01e0f219ea528f22d9633

@roarkely will deploy the change once it finishes building

4 Likes