Skip to main content

Overview

useModerateSpaceComment returns a callable function for taking moderation action on a comment in a space. Requires the caller to be a moderator or admin.

Usage Example

Parameters

string
required
UUID of the space containing the comment.
string
required
UUID of the comment to moderate.
"approve" | "remove"
required
The moderation action to take.

Returns

"approved" | "removed" | null
The comment’s status after the request. A comment its author deleted takes no moderation change, so it answers with its existing status, which can be null.
For integration guidance, see Moderation.