Overview
Returns a function that allows a space moderator to take action on a comment report. Available actions are: remove the comment, ban the comment’s author from the space, or dismiss the report.Requires the authenticated user to have
admin or moderator role in the target space.Usage Example
Parameters
The ID of the space the report belongs to.
The ID of the report to action.
The ID of the reported comment.
One or more actions to take:
remove-comment— Removes the comment.ban-user— Bans the comment’s author from the space (requiresuserId).dismiss— Marks the report as dismissed.
A moderator note describing the action taken.
The ID of the user to ban. Required when
ban-user is included in actions.The reason for banning, if applicable.
Returns
ReturnsPromise<{ message: string; code: string }>.
Notes
- This is the comment equivalent of
useHandleSpaceEntityReport. - To fetch pending reports, use
useFetchModeratedReports.

