Ticket #1536: 1536.2.patch
| File 1536.2.patch, 1.5 KB (added by , 15 years ago) |
|---|
-
bp-blogs/bp-blogs-functions.php
83 83 bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'last_activity', bp_core_current_time() ); 84 84 85 85 $is_private = !empty( $_POST['blog_public'] ) && (int)$_POST['blog_public'] ? false : true; 86 $is_private = !apply_filters( 'bp_is_new_blog_public', !$is_private ); 86 87 87 88 // Only record this activity if the blog is public 88 89 if ( !$is_private && !$no_activity ) { … … 145 146 if ( 'post' != $post->post_type ) 146 147 return false; 147 148 149 $is_blog_public = apply_filters( 'bp_is_blog_public', (int)get_blog_option( $blog_id, 'blog_public' ) ); 150 148 151 if ( 'publish' == $post->post_status && empty( $post->post_password ) ) { 149 if ( (int)get_blog_option( $blog_id, 'blog_public' )|| !is_multisite() ) {152 if ( $is_blog_public || !is_multisite() ) { 150 153 // Record this in activity streams 151 154 $post_permalink = get_permalink( $post_id ); 152 155 … … 219 222 if ( !empty( $recorded_comment->post->post_password ) ) 220 223 return false; 221 224 225 $is_blog_public = apply_filters( 'bp_is_blog_public', (int)get_blog_option( $blog_id, 'blog_public' ) ); 226 222 227 // If blog is public allow activity to be posted 223 if ( get_blog_option( $blog_id, 'blog_public' )) {228 if ( $is_blog_public ) { 224 229 225 230 // Get activity related links 226 231 $post_permalink = get_permalink( $recorded_comment->comment_post_ID );