VirtusLab-Open-Source / strapi-plugin-comments

A plugin for Strapi Headless CMS that provides end to end comments feature with their moderation panel, bad words filtering, abuse reporting and more.
MIT License
409 stars 64 forks source link

manage lifecycle #240

Open janlew opened 10 months ago

janlew commented 10 months ago

Hello, it is possible to add lifecycles e.g. "beforeUpdate" to comments? I want to make review system with approval flow. I thought about something like this:

  1. Comment (review) with reaction (from strapi-plugin-reactions [start-1, star-2, ..., start-5]) is added by user
  2. At first reaction is connected with comment not with commented product
  3. Admin approves comment and lifecycles "beforeUpdate" adds reaction to commented product

So reaction will be added to product only after comment approval. Is something like this possible?

CodeVoyager commented 6 months ago

Hi @janlew

Have a look if https://github.com/VirtusLab-Open-Source/strapi-plugin-comments/pull/251 PR will cover your needs.