You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add the option to enrich a reaction's activity object with the activity's reactions so clients can display the original activity's reaction counts and current user's own reactions. This is necessary to implement common features in popular social media platforms like Twitter, such as "reposts" (displaying the original activity's reaction counts) and similar features.
Currently, the code below allows reposting but does not allow client.feed('user_likes', userId).get({}) to retrieve the original activity's reaction counts or the current user's own reactions to the original activity. Enrichment only returns the original activity's basic information (via object) without it's reactions.
The code below also allows for a reposting type feature with the original's reactions but does not maintain the order of when the activity was added to the additional feed. Rather, it orders based on the activity's original create date. (ie. liking post2 and then post1, will return post1 before post2 when fetched).
Please add the option to enrich reactions with activity objects with that activity objects reactions such as with the following options:
client.feed('user',id).get({user_id: currentUserId||undefined,id_lte: cursor2?.fromId,limit: 20,enrich: true,//EXISTING: For current activitywithOwnReactions: true,withReactionCounts: true,withOwnChildren: true,//NEW: for nested activitywithActivityObjectReactions: true,withOwnActivityObjectReactions: true})/**Returns: same as previous code snippet but adding the following:{ object: { //NEW: for nested activity (original activity reacted to) reaction_counts: {}, own_reactions: {} }}**/
The text was updated successfully, but these errors were encountered:
Please add the option to enrich a reaction's activity object with the activity's reactions so clients can display the original activity's reaction counts and current user's own reactions. This is necessary to implement common features in popular social media platforms like Twitter, such as "reposts" (displaying the original activity's reaction counts) and similar features.
Currently, the code below allows reposting but does not allow
client.feed('user_likes', userId).get({})
to retrieve the original activity's reaction counts or the current user's own reactions to the original activity. Enrichment only returns the original activity's basic information (viaobject
) without it's reactions.The code below also allows for a reposting type feature with the original's reactions but does not maintain the order of when the activity was added to the additional feed. Rather, it orders based on the activity's original create date. (ie. liking post2 and then post1, will return post1 before post2 when fetched).
Please add the option to enrich reactions with activity objects with that activity objects reactions such as with the following options:
The text was updated successfully, but these errors were encountered: