You need to sign in to do that
Don't have an account?
Chatter API returning negative value for total likes
Hi,
I am currently working with the REST API for Chatter, and while debugging I mistakenly called the DELETE method twice for a particular post.
When I retrieved the post again, the number of likes is now negative (initial value was 1). Is this to be expected? The reply I got for the feed item contains the following object for likes:
"likes":{ "total":-1, "previousPageUrl":null, "currentPageUrl":"/services/data/v24.0/chatter/feed-items/0D590000008aruhCAA/likes", "nextPageUrl":null, "likes":[ ] }
As you can see, the likes array is empty, meaning no one likes the item. But the total value is -1. Is this really supposed to happen?
(Sorry for the noobish question, just starting out on Chatter. Also, sorry I am not sure on which board this should go.)
Thanks,
Zarah.
Thanks for pointing this out Zarah, it looks like a bug, we will look into it and try to fix it for a future release.
Alright, thanks Chris!