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
413 stars 65 forks source link

After setup comments are missing on model #127

Closed kwiat1990 closed 2 years ago

kwiat1990 commented 2 years ago

Hey, I'm running the newest version of Strapi (v4.1.7) and I have installed the comment plugin and done the initial setup from the Strapi dashboard - everything accordingly to the docs.

After all those steps I don't see any relation between comments and my models as well as comments field doesn't come up when I fetch models. I had also enabled comment plugin in the plugins.js to see if that will make any difference but it didn't. Could somebody please point out what I'm missing?

Or everything I will ever see is under that endpoint api/comments/:relation and comments won't be a part of the model's response, e.g. api/articles won't contain comments field?

cyp3rius commented 2 years ago

Thats exactly as you described @kwiat1990, you must use the API to fetch comments. For ease of use and flexibility we have dropped the poly relations in v2.x.

All what you must do is to setup the plugin using the Settings page.

cyp3rius commented 2 years ago

Closing as I see your reaction for my response @kwiat1990 :)