BuddyDev

Search

Followers are not showing in activity feed

  • Participant
    Laurie Dugdale on #1356

    Hi,

    I’ve just purchased the “Facebook Like User Activity Stream for BuddyPress” plugin, and its currently not showing the activity from people the user is following.

    Any help greatly appreciated.

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #1357

    Hi Laurie,
    My apologies for the inconvenience.

    Since most the users are only interested in seeing the activity of the users they follow, This plugin includes that by default.

    Still, It is very easy to make it include the activity of followers. You can add following line to your bp-custom.php or theme’s functions.php and It will include followers activity too

    
    add_filter( 'fblike_activity_get_friend_ids', 'fb_like_custom_include_follower_user_ids', 10, 2 );
    
    function fb_like_custom_include_follower_user_ids( $user_ids, $current_user_id ) {
    	
    	$follower_ids = bp_follow_get_followers( array( 'user_id' => $current_user_id ) );
    	
    	return array_merge( $user_ids, $follower_ids );
    }
    
    

    Hope that helps.

    Thank you
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved