Take a look at this filter:
$where_conditions = apply_filters( 'bp_activity_get_where_conditions', $where_conditions, $r, $select_sql, $from_sql, $join_sql );
In \buddypress\bp-activity\bp-activity-classes.php ~L. 418
Take a look at this filter:
$where_conditions = apply_filters( 'bp_activity_get_where_conditions', $where_conditions, $r, $select_sql, $from_sql, $join_sql );
In \buddypress\bp-activity\bp-activity-classes.php ~L. 418