KRISHNAKANTH BASKARAN
KRISHNAKANTH BASKARAN

Reputation: 55

Getstream - Filter the activities by custom fields

I add many activities to my user feed. How to filter the activities by "category":"tech"?

this is my activity example:

person.add_activity ({ "actor": "user", "verb": "post", "object": "post12", "foreign_id": "user:123", "message": "hi everyone", "category":"tech" })

Upvotes: 2

Views: 1046

Answers (1)

Scott Lasica
Scott Lasica

Reputation: 344

unfortunately we don't support filtering on reads. The way most customers handle this is by creating a feed for each thing you want to filter on, then follow/unfollow based on whether or not you want to see those items in your feed. For instance, if your user follows fruit, you create feeds for apples, bananas and pears and have the user feed follow all 3. If they want to filter on only apples, you unfollow bananas and pears.

Upvotes: -1

Related Questions