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

Comments are broken if user was deleted #137

Closed kwiat1990 closed 2 years ago

kwiat1990 commented 2 years ago

Hi, I’ve noticed that when a user, which posted a comment, get deleted, then comments view in Strapi dashboard is broken due to an error (reading property name of undefined). It happens because author field is relational and in case a user get deleted, all comments of this user won’t contain that field anymore.

I think it’s a bit of a problem if an app let users delete their accounts.

cyp3rius commented 2 years ago

Looking into that @kwiat1990

cyp3rius commented 2 years ago

Fix released as part of 2.1.5