Hospedaje-Trotamundos / buddypress-media

Automatically exported from code.google.com/p/buddypress-media
0 stars 0 forks source link

Member's friends loop issue #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Member's friends loop repeat always the same "activity update" (the logged in 
member one)

I've fixed it, here's my solution :

In : buddypress-media/app/main/activity/BPMediaActivity.php 

Replace the ines 76 and 79 width this code :

$user_id = bp_get_member_user_id();

if( empty( $user_id ) )
    $user_id = bp_displayed_user_id();

You must not use bp_displayed_user_id(); in the members loop
you must first verify that bp_get_member_user_id()
doesn't exist before using bp_displayed_user_id()

(i use latest Buddupress and Wordpress version on a multi-site instal)
Regards,

Original issue reported on code.google.com by pierre.d...@gmail.com on 6 May 2013 at 9:44