Remove 'reply' link from comment field when threading is disabled

Created on 18 May 2021, about 3 years ago
Updated 26 June 2023, 12 months ago

Problem/Motivation

This is a followup to #81373: Allow option for comments to be completely flat (no threading in database) β†’ . Copying the relevant comments here for simpliicity.

From RobLoach in #comment-21 β†’
When "Threading" is disabled, you still get the "reply" link in the Comment operations.

From andypost in #comment-22 β†’
#21 is only issue left here, also it make sense to check other code for possible optimizations when comments are not threaded
Like \Drupal\comment\CommentStorage::loadThread() does

For example:
1) no need to calculate thread and query it in \Drupal\comment\CommentStorage::getMaxThread()
2) and other places

Steps to reproduce

Standard install
Disable threading, /admin/structure/types/manage/article/fields/node.article.comment
Create an article
Add a comment
See the reply link.

Proposed resolution

Remove the reply link.

Remaining tasks



Commit

Manual testing done in #17 and #22.

User interface changes

As it is:

As it to be:

API changes

No api changes

πŸ› Bug report
Status

Fixed

Version

9.2

Component
CommentΒ  β†’

Last updated 2 days ago

Created by

πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand

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.

  • πŸ‡ΊπŸ‡ΈUnited States Davisdjohn

    To remove the "reply" link from the comment field when threading is disabled, you will need to modify the code or configuration settings of your comment system. The specific steps to achieve this will depend on the platform or software you are using for your comments.

Production build 0.69.0 2024