I’m having trouble with
I am trying to use @wix/comments to Edit or Update the Reactions, Vote Summary, and Ratings for comments, and I can’t see how to do this using the @wix/comments SDK API.
Working in
WIX Studio Editor
What I’m trying to do
I’m trying to display a custom comments repeater on my site. I can create a comment using the Create Comment API, and I can edit a comment using the Update Comment API.
I’ve reached out to the team as I also can’t find a way to set/update these. I tried “forcing” it by providing the data in both update/create, to check if it was simply undocumented for some reason, and that didn’t result in anything.
Will loop around if I have an answer from the team about it
Hey, @noahlovell! Just wondering if you’ve had any feedback from the team regarding programmatically updating the reactions in WIX Comments? Many thanks!
Ah, shoot. That throws a spanner in the works. Thanks for checking, @noahlovell. I was hoping that there would be something similar to the API below for Blog Posts, but it just hadn’t been written in the API docs yet for Comments.
If there is some kind of mailing list I could be added to for updates on it, that would be awesome. If not, I’ll start looking for different solutions.
The approach I’d likely take is a “parallel” DB that has minimal data to link it to the comments, and then track reactions/like etc there. Not perfect, but a way forward.
We have the Dev Changelog where we share updates etc - https://dev.wix.com/changelog - and if you join the Studio Discord, we’ve connected the RSS feed to a channel where you can get notifications for new items without needing to setup a subscription to the RSS feed
Hey, @noahlovell. Thanks for the speedy reply. It did cross my mind to opt for a parallel database. However, I’d end up having to create an entry for each comment, and if the site community grew big enough, my CMS database costs could spiral, all for the sake of a ‘like button‘.
Do you know if there is a character count limit for the Comments? Another way of doing it could just be to tack the ID of the user to the end of the comment text itself, count them, and then programmatically remove them before posting. However, if 30K people like a comment, that’s 30K IDs added to the character count, which would be a huge