Hank Denijm
Hank Denijm

Reputation: 83

getstream.io: Adding activities to a user's feed without a following relation

I'm currently developing a networking application where I'm using activity streams. At first getstream looked like it would save my day but I soon stumbled upon a hurdle: in my system a user can follow other users, organisations and groups (polymorphic Actor class), so far so good. But a user's feed should also include activities by actors the user does not follow but which are tagged with a topic/tag the user have stated an interest in (basically the user "follows" one or more tags). Then I found the "To" field in the documentation which looked like it could solve my problem, until I read a few more lines and saw that it was limited to 100 targets. Is this this limit etched in stone? Or is there maybe another feature I haven't seen which can solve this problem?

Upvotes: 4

Views: 1275

Answers (1)

Tommaso Barbugli
Tommaso Barbugli

Reputation: 12031

Activities added to a feed via the to field, are also sent to its followers, this allows you to create more complex flows like the one you describe.

For example: say that the feed news:tommaso follows the feed tag:programming. When you add an activity to a feed news:hackernews and add tag:programming in the list of "to" targets, news:tommaso will receive the activity in its feed as well.

Upvotes: 4

Related Questions