BuddyDev

Search

Mediapress activity notification links

  • Participant
    Level: Enlightened
    Posts: 37
    Earl D on #55639

    Whenever a user posts an activity update with a mediapress uploaded photo the notification link goes the the user gallery not the activity update. Any ideas?

  • Keymaster
    (BuddyDev Team)
    Posts: 25082
    Brajesh Singh on #55648

    Hi Earl,
    Thank you for reporting the issue. This is currently by design.

    You will need to add the following to your bp-custom.php to disable it.

    
    // disables MediaPress gallery linking for activity.
    add_action( 'bp_include', function () {
    
    	if ( ! function_exists( 'mpp_filter_activity_permalink' ) ) {
    		return;
    	}
    
    	$priority = has_filter( 'bp_activity_get_permalink', 'mpp_filter_activity_permalink' );
    
    	if ( false !== $priority ) {
    		remove_filter( 'bp_activity_get_permalink', 'mpp_filter_activity_permalink', $priority );
    	}
    
    } );
    

    Please let me know if it worked for you or not?

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved