Skip to content

Conversation

@rob-ghost
Copy link
Contributor

@rob-ghost rob-ghost commented Jan 26, 2026

Why?

Staff members can now disable commenting for individual members (via the disableMemberCommenting labs flag). When a member has their commenting disabled, the comments UI needs to reflect this state appropriately.

ref https://linear.app/ghost/issue/BER-3184

What does it do?

When a member has their commenting ability disabled:

  • Shows a "Commenting disabled" message with a link to contact support instead of the comment form
  • Hides the reply button entirely
  • Disables the like button functionality
  • Hides the edit/delete menu on their own comments

The support email link uses the site's configured portal support email.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 26, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@rob-ghost rob-ghost force-pushed the disabled-members-comments-ui branch from 821cf04 to 8d0095e Compare January 26, 2026 11:39
@rob-ghost
Copy link
Contributor Author

Future thought:

We have a few states where commenting isn't available:

  1. Commenting is turned off for the publication
  2. Commenting is members-only, visitor isn't a member
  3. Commenting is paid-only, member is on free tier
  4. Commenting is enabled but the member's ability to comment is disabled

These kind of boil down to:

  • Can comment
  • Can't comment (no upsell path)
  • Can't comment but can be upsold

Right now the logic for determining this is spread across components. We could enumerate these as explicit states in the context (similar to how we now have isCommentingDisabled), then components just check the state rather than re-deriving it.

Something like:

type CommentingState = 'CAN_COMMENT' | 'COMMENTING_OFF' | 'NEEDS_MEMBERSHIP' | 'NEEDS_PAID_TIER' | 'MEMBER_DISABLED';

@rob-ghost rob-ghost force-pushed the disabled-members-comments-ui branch 2 times, most recently from 77e3673 to 214a835 Compare January 26, 2026 16:02
ref https://linear.app/ghost/issue/BER-3184
When a member has their commenting ability disabled, they now see a
"Commenting disabled" message instead of the comment form, and cannot
like, reply, edit, or delete comments.
@rob-ghost rob-ghost force-pushed the disabled-members-comments-ui branch from 214a835 to 9a1bcf2 Compare January 26, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants