Flag/Unflag

Flag

The Social Plus SDK product also includes a flag method that allows users to flag comments in their app. Once a comment is flagged, an indicator will appear in the Admin console, where an administrator can review and validate the flag. If the content is found to be in violation of your app's policies, it can be deleted from the app. On the other hand, if the content is not found to be in violation, the flag can be revoked.

This method allows users to notify the community moderators or admins about comments that they believe violate the community guidelines or are otherwise inappropriate. By flagging a post with reason that we provided, users can help ensure that the community remains a safe and welcoming place for all members.

AmityContentFlagReason
Description

CommunityGuidelines

Against community guidelines

HarassmentOrBullying

Harassment or bullying

SelfHarmOrSuicide

Self-harm or suicide

ViolenceOrThreateningContent

Violence or threatening content

SellingRestrictedItems

Selling and promoting restricted items

SexualContentOrNudity

Sexual message or nudity

SpamOrScams

Spam or scams

FalseInformation

False information or misinformation

Others

Optional explanation (Max. 300 chars)

Flag reason is only available in iOS, Android, and TypeScript

Unflag

Another useful feature is the unflag method, which enables users to revoke a previously flagged comment. If a user flags a comment by mistake or if the comment is found not to violate your app's policies after review, the unflag method can be used to remove the flag from the comment. It ensures that users have control over the content they flag and the ability to reverse their flag if necessary.

Check for isFlaggedByMe

The isFlaggedByMe method allows users to check whether they have previously flagged a particular comment. This method provides a convenient way for users to keep track of the content they have flagged and to ensure that they are staying up-to-date with their moderation activities.

By using the isFlaggedByMe method, your app's users can quickly determine whether they have already flagged a particular comment and avoid duplicating their efforts.

Last updated

Was this helpful?