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

Calling .Own() retrieves other users' reactions #27

Open
rei-gun opened this issue Nov 19, 2019 · 1 comment
Open

Calling .Own() retrieves other users' reactions #27

rei-gun opened this issue Nov 19, 2019 · 1 comment

Comments

@rei-gun
Copy link

rei-gun commented Nov 19, 2019

var results = await feed.GetEnrichedFlatActivities(GetOptions.Default.WithReaction(ReactionOption.With().Counts().Own()));

CMIIW but the OwnReactions IEnumerable i get from results, includes reactions from UserIds that are not the same as the owner of the FeedGroup.

@sinapy
Copy link
Contributor

sinapy commented May 11, 2024

@rei-gun You have to write .WithUserId(userId) after .WithReaction(...)

So it would be var results = await feed.GetEnrichedFlatActivities(GetOptions.Default.WithReaction(ReactionOption.With().Counts().Own()).WithUserId(userId));

Change userId to the user's feed name. It would be feedGroupName:UserId
You should already know the feed group, (it might be user) and the user ID is the user ID of the user you are retrieving data for. (ex. user:123)

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

2 participants