Updating a forum topic can bury it in the list

Created on 10 January 2023, over 1 year ago
Updated 24 April 2024, 2 months ago

Problem/Motivation

When a forum topic get's updated, it runs through core/modules/forum/src/ForumIndexStorage::createIndex() which uses the node created time for "last_comment_timestamp". If the forum is sorted by newest first, this means that the post might be buried deep if it was created a while ago and was edited recently, even if it has recent comments.

Steps to reproduce

- Order forum by newest
- Create a forum post A
- Create another forum post B
- Comment on post A, This will bump it above B
- Edit Post A, Now it will bump back down below B

Proposed resolution

- Use the updated date instead.

πŸ› Bug report
Status

Active

Version

1.0

Component

forum.module

Created by

πŸ‡¨πŸ‡¦Canada b_sharpe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024