Block feature isn’t effective on page for liked activities
-
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.
- The topic ‘Block feature isn’t effective on page for liked activities’ is closed to new replies.