Edit or Update; Likes, Votes, and Ratings in @wix/comments

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.

When I retrieve the comments using List Comments By Resource API, the object includes fields for:

  • ratings
  • reactions
  • voteSummary

In the native WIX Comments App, users can interact with the comment and update these.

  • Is there a way to programmatically update these details to include new user interactions?

  • Is there a way to see if the current logged in member is already included in the returned tally (so I can display the interaction on the live site)?

I have looked at the API docs and I can’t see any options to update the rating, reations, and voteSummary.

Any help would be much appreciated!

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 :slight_smile:

Thanks, @noahlovell. Much appreciated!

(post deleted by author)

Hey @tom_a! It’s currently with the team who are checking. I don’t have any updates yet, but will loop around when I hear more :slight_smile:

1 Like

Hey, @noahlovell! Just wondering if you’ve had any feedback from the team regarding programmatically updating the reactions in WIX Comments? Many thanks!

Just checked in again, and unfortunately it doesn’t seem possible at the moment. It’s on the team’s radar, but I don’t have an ETA for its support

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.

Thanks again!

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

1 Like

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 :sweat_smile: