// If activity author does not match displayed user, block access.
if ( true === $has_access && bp_displayed_user_id() !== $activity->user_id ) {
$has_access = false;
}
bp_displayed_user_id() in activity stream is always 0 and that’s breaking the access. I have read the explanation about this function but still don’t get why do I need to check this in activity stream. So I disabled it and now it works.
Do you know if in DB all these fields are one long string?
I’m looking for same thing, but I want to search by several fields (BP profile search) and I don’t see how it works with it.