Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to limit comment when get feed and filter reaction #466

Open
toannv1803 opened this issue Aug 28, 2021 · 0 comments
Open

How to limit comment when get feed and filter reaction #466

toannv1803 opened this issue Aug 28, 2021 · 0 comments

Comments

@toannv1803
Copy link

  1. I use this code to get feed
timeline.get({ 
  ranking: '...',
  enrich: true, 
  limit: 3,
  recentReactionsLimit: 2
  ownReactions: true, 
  withOwnReactions: true, 
  withOwnChildren: true, 
  withReactionCounts: true, 
  withRecentReactions: true, 
})

I receive 3 activities, in every activity has 2 comments lv1 but unlimited comment lv2 in comment lv1 return in the result.
Getstream support create reaction lv 0, 1, 2. When I get feed how to I limit reaction lv 1, 2

  1. When I filter reaction, latest_reactions include all reaction child, I can't limit data in latest_reactions.
    This is my code
client.reactions.filter({
  activity_id: activityId,
  kind: "comment",
  limit: 1
});
  1. When I load more comments, I use filter reaction, but I can't get own_children of the current user.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant