Re: Hidden blog posts from private blogs in sidewide activity stream
Hi Afoka –
Your post reminded me that I had to change this hack a bit in BP 1.1.3. Here are the notes I made for myself at the time. Let me know if they make sense, and if you can make them work:
===
In wp-content/plugins/buddypress/bp-blogs.php:
– function bp_blogs_record_post has two cases, one for new posts and one for edited posts. Change
if ( (int)get_blog_option( $blog_id, 'blog_public' ) ) {
to
$is_blog_public = get_blog_option( $blog_id, 'blog_public' ); //added
//if ( (int)get_blog_option( $blog_id, ‘blog_public’ ) ) {
if ( $is_blog_public > 0 ) { // changed to account for More Privacy Options
in both of the cases.
– functions bp_blogs_record_comment and bp_blogs_approve_comment. Replace
if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) ) {
with
$is_blog_public = get_blog_option( $recorded_comment->blog_id, 'blog_public' ); //added
//if ( (int)get_blog_option( $recorded_comment→blog_id, ‘blog_public’ ) ) {
if ( $is_blog_public > 0 ) { // changed to account for More Privacy Options