Comments moderation

Currently we’re using comments feature and It’ll be good If our system can have same moderation as comments. Because some of our feature might require it.

Questions are

  1. Do you have any API that our system can use to moderate, or can you share the way to implement it?

  2. For the comments moderation, Are you using ban word list from here * https://asc.amity.co/spam/blocklist?region=sg

  3. If we want to submitComment from server side, is there a way to do? or any suggestion?

Hi @tlezip,

  1. Our moderation system is used internally when a content (message, post, comment) is added into the system, therefore it won’t be possible to invoke the moderation against external content via API

  2. Yes all moderation - posts, comments and messages are subjected to moderation as documented here: https://docs.amity.co/console/moderation-roles-and-privileges#blocklisting

  3. Comment can be created via our Admin API: Swagger UI - however the creator of the comment will be the admin who owns the token used to invoke the API.

Comment can be created via our Admin API: [Swagger UI](https://api-docs.amity.co/#/Comment) - however the creator of the comment will be the admin who owns the token used to invoke the API.

For this one, is there a way to comment with API and make creator to be user that’s not admin (normal user)?

You would need to issue accessToken fromt he user instead - which can be done via Session Register api Swagger UI but this means you’ll need to do this everytime for every user - can you share more about your use case and specifically why do you need to create comment from the server instead of sdk?

Hi, I’m working with @tlezip

Our use-case is a feature where user sends a tip (money) to the author of the content. Ideally we don’t want to submit the comment until the payment has been completed and verified. The verification happens on server side.

Sounds like we can do this, we will give this a try:

  • User sends their accessToken to server
  • User completes the payment flow
  • Server verifies the payment
  • Server uses session register API to identify as the user
  • Server submits the comment, including the tipping metadata (money amount etc)

Thank you for your help. If there’s some other better way to do this kind of feature, please let us know.