getReaction
Returns the reaction of a user
to a post
(if any).
How to use?
const { data, error } = await orbis.getReaction(post_id, did);
Parameters
post_id
- (stream) ID of a postdid
- DID of a user whose reaction you're querying
Returns
Returns an object
or null
if the user did not react.
{
type: "like"
} ||
null