Premoderation

Overview

With PREMODERATION set to anything but none, a new comment can be held for approval. A held comment is stored as usual but its text is not shown on the site: it is hidden from everyone except its author and the site's admins, and it is left out of the comment counts, the RSS feeds and the notifications to the comment's readers. An admin approves or rejects it from the actions under the comment, or with the API.

The parameter takes one of four values:

ValueWhat is held
nonenothing, every comment is approved on arrival
linksa comment that contains a link, the default
firstevery comment of a user until one of their comments is approved, after which their comments are approved on arrival
allevery comment

Admins and verified users are never held, whatever the value. A comment that is edited is checked again: under all a changed text is held again, and under links a comment that gains a link is held again, while removing a link or leaving the text as it was keeps the comment as it is.

Approving and rejecting

An admin approves or rejects a held comment from the actions under it. Approving makes the comment visible to everyone and notifies the authors of the comments above it, as they were not told about it while it was held. Rejecting leaves the comment held, so it stays visible to its author and the admins only.

Under first, approving one comment also approves the other held comments of the same author, and each of them is announced to its readers.

The same is available over the API:

curl -X PUT 'https://your.remark42.example/api/v1/admin/comment/{id}/approve?site={site-id}&url={post-url}&approved=1' \
  -u admin:{admin-password}

approved=1 approves the comment, any other value rejects it. See the API documentation for the full list of endpoints.

Admin status is per site

An instance can serve several sites, each with its own list of admins. A user who is an admin of one site is not an admin of another, so they do not see that site's held comments and their own comments there are held like anyone else's. The basic-auth admin, the one signing in with ADMIN_PASSWD, is an admin of every site.

Notifications

A held comment is announced to admin destinations only, and the authors of the comments above it are not told until it is approved. Telegram, Slack and the webhook carry it without the text, with "comment is pending approval" in its place, while the admin email marks the subject as pending and shows the comment. See Notifications for the details.