comment
Model for comments attached to resources. It provides listing, moderation checks, counting, and retrieval of individual comments.
Available Model API Paths
| Method | Path pattern | Description |
|---|---|---|
get | /anonymous/... | Return whether anonymous comments are allowed; defaults to true when mod_comment.anonymous is unset. |
get | /moderate/... | Return whether new comments require moderation; defaults to false when mod_comment.moderate is unset/empty. |
get | /rsc/+id/... | Return all comment rows for resource +id (ascending by creation time; requires resource visibility). |
get | /count/+id/... | Return total comment count for resource +id (requires resource visibility). |
get | /get/+commentid/... | Return comment record +commentid, or undefined if missing; access is denied when the linked resource is not visible. |
/+name marks a variable path segment. A trailing /... means extra path segments are accepted for further lookups.