Ken
Ken

Reputation: 63

Retrieving "to" field in GetStream.io

Returning to some code from a year or more ago, I find that the "to" field is not being returned when getting a user feed or flat feed. This appears to be the case using both the realtime javascript client and the Python library. The field is returned when adding an activity in the first place.

In my system, users subscribe to the "to" feeds rather than the feeds of the actors themselves. The presence of the 'to' field makes it possible to show the user why an activity has appeared in their feed. "To" fields to which the user is subscribed are highlighted within each activity, and activities bearing multiple highlighted 'to' fields stand out as being of greater interest.

Is this element no longer returned, or am I doing something wrong?

Upvotes: 0

Views: 113

Answers (1)

Dwight Gunning
Dwight Gunning

Reputation: 2525

The 'to' field is included on Activities when the feed they were originally added to is retrieved. However when a feed is retrieved that contains an Activity that arrived there via 'to' field targeting, that Activity won't include the 'to' field.

Upvotes: 1

Related Questions