Apple rejected because of this. How to address this? My app has a community forum.
Guideline 1.2 - Safety - User-Generated Content
We found in our review that your app includes user-generated content but does not have all the required precautions. Apps with user-generated content must take specific steps to moderate content and prevent abusive behavior.
Next Steps
To resolve this issue, please revise your app to implement the following precautions:
Require that users agree to terms (EULA) and these terms must make it clear that there is no tolerance for objectionable content or abusive users
A method for filtering objectionable content
A mechanism for users to flag objectionable content
A mechanism for users to block abusive users
The developer must act on objectionable content reports within 24 hours by removing the content and ejecting the user who provided the offending content
Well, Apple has explained pretty clearly what they expect to see in the app with community generated content.
You need to:
ensure that users of your app accept a terms/license agreement (you can do it on the separate screen, or add a checkbox required to accept, etc.), and this agreement states that the abusive content is prohibited;
you may want to add the “complain” button on the post / thread, allowing your app users to send a message to app admins about the abusive content;
same with reporting a user, not a thread/post;
“method for filtering” - I believe you can have a property for the comment, smth like “under review”, and hide/show this comment based on it;
for the last requirement, you can make an admin console page with the reviewing of posts/users/complaints.
Have a look at this exact forum - the functionality is pretty similar to what Apple wants (although it’s much more complex ).