• We are running a Buddyboss site and have found out that we the block feature doesn’t work on the profile’s page for displayed the activities the user has liked. This means that if user A is blocked by user B but user A has liked activities by user B then user A can still view and comment on the liked activities posted by user B. And if user A visit user C and user C has liked some activities by user B then user A can view and comment on the activities posted by user B even though user A is blocked by user B.

    In /includes/class-bp-toolkit-suspend.php I find the following filters:

    add_filter( 'bp_activity_set_public_scope_args', array( $this, 'override_scope' ), 99 );
    add_filter( 'bp_activity_set_friends_scope_args', array( $this, 'override_scope' ), 99 );
    add_filter( 'bp_activity_set_groups_scope_args', array( $this, 'override_scope' ), 99 );
    add_filter( 'bp_activity_set_mentions_scope_args', array( $this, 'override_scope' ), 99 );
    add_filter( 'bp_activity_set_following_scope_args', array( $this, 'override_scope' ), 99 );
    add_filter( 'bp_after_has_activities_parse_args', array( $this, 'filter_activities' ), 99 );

    It seems the following line is missing:

    add_filter( 'bp_activity_set_favorites_scope_args', array( $this, 'override_scope' ), 99 );

    But it doesn’t work just adding that line so there must be something more to it.

    Anyway it would be great it this loophole could be taken care of.

    • This topic was modified 1 year, 6 months ago by hemligg.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ben Roberts

    (@bouncingsprout)

    Hey Par,

    Does this relate to the issue you emailed about around the 20th March? If so, my reply stands – I’m looking into it, I promise!

    If this is a different issue, please use our support system – you a paying customer now 😊

    Ben R

    Thread Starter hemligg

    (@hemligg)

    Ah….yes it’s the same issue. I just didn’t realize I got a reply on that. But I found your reply now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Block feature isn’t effective on page for liked activities’ is closed to new replies.