4 years ago

Get a Twitter like stream of data

Posted 4 years ago by Hamrath


I'm working on an app with Twitter like functionality. I already did the following:

I can follow people, people can follow me. I can post statuses, people can see my statuses, if they visit my profile. Of course I can see my own statuses. ;)

What I'm trying to do now: I'd like to have a stream with all statuses posted by me and the people I'm following. And I don't get it right. :-/

I've two Models, User and Status. They both have a function with belongsToMany. But how do I collect all statuses from me and the people I follow and merge them together.

I don't need a full solution, some hints would be helpful as well. ;)

Thanks, Oliver

Please sign in or create an account to participate in this conversation.