bp_get_activity_avatar() for components do not work
|Reported by:||r-a-y||Owned by:|
If you take a look at the bp_get_activity_avatar() function, it appears that the code takes into consideration avatars for other components.
eg. If you created a group activity update, the group avatar should show instead of the default user one
However, there are some redundant checks for the user ID that breaks this functionality.
The attached patch based on the BP 1.2 branch fixes this.
The only thing I haven't taken into consideration is the link for the avatar. Right now, it also defaults to the user's link, should it link to the component's home page?
If so, I can create a patch for the bp_get_activity_user_link() function as well.
Thanks to Anton for posting about this on the forums: