stream-feed-flutter icon indicating copy to clipboard operation
stream-feed-flutter copied to clipboard

Populate actor while getting feed

Open developerpaaji opened this issue 3 years ago • 3 comments
trafficstars

Problem Feed like in almost any social media app shows feed with users who have posted feed. In currenct version when we get feed we get only id we have to get user by our self.

Suggested Solution Can u add request field like populateActors so we will all activities in convinient form

developerpaaji avatar Feb 25 '22 10:02 developerpaaji

Hi @developerpaaji, thanks for opening an issue. In the UI kit we are working on, we made this convenient method https://github.com/GetStream/stream-feed-flutter/blob/20efd500402eab7b89e28a6a3c8cde2335f3efa2/packages/stream_feed_flutter_core/lib/src/bloc/feed_bloc.dart#L117-L125

Would this work for you?

sachaarbonel avatar Feb 25 '22 13:02 sachaarbonel

@developerpaaji I am getting the actor in my app when I get the feed. When you make an activity are you doing this:

feed.createUserReference(
                                        uid),

for the actor field. This will populate what you set for the user that was created.

rlee1990 avatar Feb 25 '22 21:02 rlee1990

Thanks @sachaarbonel @rlee1990 will check into it.

developerpaaji avatar Feb 25 '22 21:02 developerpaaji