November Happy Hour will be moved to Thursday December 5th.

How do I add another Actor to a NewsFeedStory?

Vote:
 

So I have a NewsFeedStory and I want to add another actor to this story. 

var actCol = story.Actors.CreateWritableClone() as NewsFeedActorCollection;
                                
actCol.Add(new UserAuthor(CurrentUser), null);


Next step would be to update the story.Actors and then update the Story itself.

story.Actors = actCol;


However, since story.Actors is readonly this is not possible :-/

Anyone have any ideas?

#115405
Jan 14, 2015 15:24
Vote:
 

Somehow the first codeblock isn't visible, so I post it again here ;

var actCol = story.Actors.CreateWritableClone() as NewsFeedActorCollection;
actCol.Add(new UserAuthor(CurrentUser), null);



#115406
Jan 14, 2015 15:27
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.