I am trying to make an application that would present chatter content to be displayed in a lightning community.
What would be the best way to display the profile photo of the user who posted this question/comment in chatter? And also is it possible to access this photo in an anonymous community?
I am able to get the URL of the
smallphotourl through a hack-ish way of the user who created the chatter message. But, this url is using the salesforce internal domain (ex.
na35.salesforce.com/profilephoto/<UserID>/T) so that would not work inside a lightning community.