This article presents possible use cases and corresponding sample flows that your app can support. It provides a useful starting point as you plan your app's implementation.
To prevent the publication of spam content on your blog, which often includes links to advertised products or services, phishing sites, or fraudulent schemes, you can implement a moderation rule that applies only to site visitors, excluding members. Once this rule is defined, any comment containing links will be rejected.
To check comments for rule violations:
Create a rule to define conditions on which the content will be rejected. For example:
After a site visitor submits the comment, call Check Content to verify that the comment does not break any rules.
If you have several eComm sites that use your app, you might need to sync moderation rules for product reviews across those sites. For example, you have a new rule, that from now on, all 1-star ratings must go through a manual review. This change also needs to be reflected on other sites.
To sync the rule across all sites:
Call Get Rule on the site where you created a new rule.
Extract the whole rule
object. Remove unnecessary fields, like createdDate
.
Call Create Rule for your other sites and pass the new rule to each.