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
404 stars 63 forks source link

Delete Comment from Admin Panel #233

Open Jahorse opened 9 months ago

Jahorse commented 9 months ago

Hi, I'm trying to figure out the easiest way to delete comments... Right now the best I can find is just going into the database and setting "removed" to 1.

I found issue https://github.com/VirtusLab-Open-Source/strapi-plugin-comments/issues/66 that requests a way to do this from the admin panel, and it sounded like the feature was on the way, but all I see is a way to block the comment.

I know threre's the delete comment API but it seems fairly cumbersome to have to implement a solution myself, and where would I do it? I would ideally want this built into the admin panel.

Jahorse commented 6 months ago

Hi, could I get any update here? It would be helpful if somebody could just point me in the right direction on where to begin implementing it myself, I wouldn't mind working on it.

cyp3rius commented 6 months ago

Hello @Jahorse, As you mentioned there is an API exposed only for moderation panel usage. We have got this feature listed for client side in our backlog but there are some other things on priority.

What I can suggest is to extend the plugin client service and controller using Strapi Extensions approach. In result as you mentioned setting value for removed column.