b_poplin
11 years agoExpert
message level kudos enabled setting
We are currently using the following to determine if kudos is enabled at node level:
<#assign kudosEnabled = restadmin("/boards/id/${nodeId}/settings/name/config.enable_kudos").value />
The problem is that when a blog article disables kudos (edit article/Do not allow anyone to give likes to this post [checkbox on right side of page]) kudosEnabled node level is true, but making the following call fails as "303 permission denied" which crashes our endpoint:
restadmin("/messages/id/${article.id}/kudos/for/users/self/count").value />
What is the API call to check whether kudos has been disabled at a message/article/topic level?
Thanks!