Forum Discussion
Hi,
I think this is what you're looking for: http://community.lithium.com/t5/Community-API/bd-p/developers-rest-api?leaf-id=Message.kudos.give.allowed#Message.kudos.give.allowed
The problem is that "/kudos/give/allowed" returns false for the members own message, but in this case I still want to display the kudos count on the message with the kudos button grayed out.
I believe that I need access to the actual setting to correctly determine:
1. Are kudos / like enabled, if so then show the kudos button (got community and board settings accounted for, but not the article level ***missing)
2. does this message belong to me, if so then disable the kudos button but show counts (/kudos/give/allowed)
3. have I already given this message that doesn't belong to me kudoes, if so disable, if not allow to give kudos (/kudos/for/users/self/count)
Moving "/kudos/for/users/self/count" into a condition based upon "/kudos/give/allowed" does prevent the permission denied error bombing the endpoint, but it doesn't tell me whether the counts should be shown for my own message.
Related Content
- 25 days ago
- 10 months ago