-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
Hey there I have used your SDK in the following code, I used user_id and it was just fine it filtered the ownReactions by the given user_id.
(async function () {
try {
const response = await client.getActivities({
ids: ['<activity_id>'],
user_id:
'<user_id>',
reactions: {
recent: true,
counts: true,
own: true,
kind: true,
},
});
} catch (error) {
console.log(error);
}
})();
However in SDK source code the EnrichOptions is defined as following:
export type EnrichOptions = {
enrich?: boolean;
ownReactions?: boolean; // best not to use it, will be removed by client.replaceReactionOptions()
reactionKindsFilter?: string[]; // TODO: add support for array sample: kind,kind,kind
recentReactionsLimit?: number;
withOwnChildren?: boolean;
withOwnReactions?: boolean;
withReactionCounts?: boolean;
withRecentReactions?: boolean;
withUserId?: string;
};
There's no user_id what's the deal with that?
irshadalijan, alire-alavi and TheMn
Metadata
Metadata
Assignees
Labels
No labels