stream-net icon indicating copy to clipboard operation
stream-net copied to clipboard

Calling `.Own()` retrieves other users' reactions

Open rei-gun opened this issue 6 years ago • 1 comments

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.

rei-gun avatar Nov 19 '19 04:11 rei-gun

@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)

sinapy avatar May 11 '24 22:05 sinapy