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

fix: author population #177

Closed CodeVoyager closed 1 year ago

CodeVoyager commented 1 year ago

Ticket

https://github.com/VirtusLab-Open-Source/strapi-plugin-comments/issues/174

Relates to: https://github.com/VirtusLab-Open-Source/strapi-plugin-comments/issues/146

Summary

What does this PR do/solve?

Strapi core changed in the way that down the line populate is being checked if it has a count field. Without checking if populate field is an object. 🤷‍♂️

For boolean this works just fine. But if populate key is present at all it's value is used as-is.

Test Plan

Comments list should be readable without any issues.

betoflakes commented 1 year ago

👀

fadinasr commented 1 year ago

@cyp3rius can you please check this PR? as the issue is breaking our workflow!

cyp3rius commented 1 year ago

@betoflakes @fadinasr fixed in v2.2.3