// SITE NEWSFEED PRIVACY MOD by MB $testuserID = PUT THE ID NUMBER OF THE TEST USER HERE; $eventP = array( 'action' => NEWSFEED_BOL_Service::PRIVACY_ACTION_VIEW_MY_FEED, 'ownerId' => $params['userId'], 'viewerId' => $testuserID ); $event = new OW_Event('privacy_check_permission', $eventP); try { OW::getEventManager()->trigger($event); } catch ( RedirectException $e ) { // this user has no access here, so privacy must been set to myfriens or onlyme $visibility = ($activity->visibility - NEWSFEED_BOL_Service::VISIBILITY_SITE); $activity->visibility = $visibility; } // END OF MOD