Content of drupalSettings.bestreply not up-to-date

Created on 12 December 2022, almost 2 years ago
Updated 29 March 2024, 6 months ago

Problem/Motivation

The conent of drupalSettings.bestreply is not updated when the best reply for a node is changed.

Steps to reproduce

- Create a node (e.g. nid 1) with two comments (e.g. cid 1 and 2)
- Mark comment 1 as the best reply
- Check drupalSettings.bestreply.ismarked: contains cid 1 (as expected)
- Mark comment 2 as the best reply
- Check drupalSettings.bestreply.ismarked: still contains cid 1 (should contain 2 now)

The value will remain false until the cache is cleared.

Proposed resolution

Create cache tags and invalidate them when marking or clearing a best reply.

πŸ› Bug report
Status

Closed: duplicate

Version

4.0

Component

Code

Created by

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

Merge Requests

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.71.5 2024