Member Reports: Sample Use Cases and Flows

This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation.

Notify members who are reported for spam

You may want to notify members when they are reported for spam. For example, if a member repeatedly posts promotional links in a discussion forum and is reported for spam, sending a notification ensures transparency and provides the reported member an opportunity to appeal or correct their behavior.

To notify reported members:

  1. Create an email template to be sent whenever a member is reported for spam.
  2. Use Member Report Created to listen for when a new member report is created. When the event is triggered:
    • Extract the createdEvent.entity.reason.category and check for the "SPAM" value.
    • Save the value from createdEvent.entity.reportedMemberId.
  3. Call Get Member passing the saved reported member ID to the id field. Retrieve and save the value of member.loginEmail.
  4. Send the email template to the saved email address.

Prevent abuse of the reporting system

You may want to prevent abuse of the reporting system to maintain fairness and avoid overburdening Wix users. For example, a member could exploit the system by submitting false or excessive reports to target other members unfairly. By implementing safeguards, you can discourage misuse and ensure the reporting system is used appropriately.

To prevent abuse of the system:

  1. Use Member Report Created to listen for when a new member report is created. When the event is triggered extract the value from createdEvent.entity.reportingMemberId.
  2. Query Member Reports by the reporting member ID, and track the number of reports submitted by the member within a specific time frame.
  3. If the member exceeds a determined reporting threshold or demonstrates unusual reporting patterns, such as targeting the same individual repeatedly without valid reasons, issue a warning or temporarily block that member.
  4. Optionally, notify the member about the restriction and explain the reason to promote understanding and discourage future misuse.
Did this help?