Comment moderation: approve, hide, delete and restore comments
Describes Comments 0.6.0.
The Comments admin page lists the comments people leave on your site’s records, wherever the thread sits: a user profile, a media file, a module’s own pages. It’s where you approve comments waiting for moderation, hide or delete the ones that shouldn’t be there, and bring back a deleted one.
Where to find it
In the admin sidebar, open Comments (/admin/comments). The module has to be switched on first, on the Modules page; while it is off, the page sends you back to the admin dashboard with Comments module is not enabled.
What you see depends on your permissions:
- Comments: opens the page, but shows only comments on records you manage. Which records those are is up to the module that owns each record type. For a type that gives no answer, you see none of its comments. Authors are shown by name.
- Moderate every comment on the site: every comment, whoever’s record it is on, with the authors’ email addresses.
Without the Comments permission, the page sends you back with You do not have access to comments. The Owner holds every permission. A role that already held Comments when the other two permissions were added was given both once, so it kept its full access.
Comments: every comment on the site, in one place.
The numbers at the top
Five tiles count the comments you may moderate: Total, Published, Pending, Hidden and Deleted. They ignore the search and filters below; the count of what the filters match sits above the table (for example “12 comments”).
If you also have the Change the comments settings permission, an Actions tile holds a Settings button that opens the module’s settings page.
Searching and filtering
- Search: looks for the words in the comment text. The small ✕ clears only the search. Pasting a comment’s full ID shows that one comment.
- Resource Type: the kind of record the comment is on (users, files, a module’s records). The list holds only the types that have comments you may see.
- Status: All Statuses, Published, Pending, Hidden or Deleted.
- Clear: resets the search and both filters.
The filters are kept in the page address, so a filtered view can be bookmarked or shared. The list shows 20 comments per page, with page buttons under the table.
Reading the table
Each row shows:
- Content: the first line of the comment. Click it to open the full comment in a window; Read more marks a comment that is longer than the line. A comment that is only a GIF or an attachment shows GIF or Attachment instead of text.
- A reply is marked Reply with “— Re:” and the start of the comment it answers. Click that to show the original comment on its own.
- Author: the name, or the email if you moderate every comment. Deleted user when the account is gone.
- Resource: a chip naming the record the comment is on. If the record’s module (or a resource link pattern in the settings) tells the page where the record lives, the chip is a link to it. If not, it shows the type and the start of the record’s ID, and isn’t clickable. See the guide on resource link patterns.
- Date and Status.
The view toggle above the table switches between the table and cards.
Moderating one comment
The ⋮ button at the end of a row (also in the full-comment window) opens the actions. Which ones show depends on the comment’s status:
- Approve: publishes a pending or hidden comment. Not shown for a published or deleted one.
- Hide: takes the comment off the thread but keeps it stored. Not shown for a hidden or deleted one.
- Delete: marks the comment deleted, after you confirm Delete this comment?. The comment is kept and can be restored.
- Restore: shown only for a deleted comment. It comes back as published, or as pending while Require Moderation is on.
A hidden, pending or deleted comment that has published replies stays in the thread as [removed], so the replies can still be read.
A message confirms each action, for example Comment approved, or says it didn’t work (Could not approve this comment). Every action is written to the activity log under your name.
Moderating several at once
Tick the boxes at the start of the rows (the box in the header ticks the whole page). A bar appears above the table with Selected: and the count, and three buttons: Approve, Hide and Delete (Delete asks Delete selected comments? first).
Each selected comment goes through the same rules as one by one. A comment the action doesn’t apply to, such as approving a deleted one, is skipped, and the message says how many worked and how many failed (for example “3 approved, 1 failed”).
What it doesn’t do
- It never deletes a comment for good. Delete marks it deleted, and there is no purge button.
- Approve doesn’t bring back a deleted comment; only Restore does.
- It can’t edit what a comment says. Its author, or someone who moderates the record, edits it inside the thread itself.
- It doesn’t show comments a user is about to post. With Require Moderation on, new comments land here as Pending after they are posted.