Ticket #1536: 1536.patch
File 1536.patch, 1.6 KB (added by , 14 years ago) |
---|
-
bp-blogs.php
293 293 bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'description', $description ); 294 294 bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'last_activity', bp_core_current_time() ); 295 295 296 $is_blog_public = apply_filters( 'bp_is_new_blog_public', (int)$_POST['blog_public'] ); 297 296 298 // Only record this activity if the blog is public 297 if ( (int)$_POST['blog_public']&& !$no_activity ) {299 if ( $is_blog_public && !$no_activity ) { 298 300 // Record this in activity streams 299 301 bp_blogs_record_activity( array( 300 302 'user_id' => $recorded_blog->user_id, … … 356 358 if ( $post->post_type != 'post' ) 357 359 return false; 358 360 361 $is_blog_public = apply_filters( 'bp_is_blog_public', (int)get_blog_option( $blog_id, 'blog_public' ) ); 362 359 363 if ( 'publish' == $post->post_status && '' == $post->post_password ) { 360 if ( (int)get_blog_option( $blog_id, 'blog_public' )|| !is_multisite() ) {364 if ( $is_blog_public || !is_multisite() ) { 361 365 /* Record this in activity streams */ 362 366 $post_permalink = get_permalink( $post_id ); 363 367 … … 426 430 if ( !empty( $recorded_comment->post->post_password ) ) 427 431 return false; 428 432 433 $is_blog_public = apply_filters( 'bp_is_blog_public', (int)get_blog_option( $blog_id, 'blog_public' ) ); 434 429 435 // If blog is public allow activity to be posted 430 if ( get_blog_option( $blog_id, 'blog_public' )) {436 if ( $is_blog_public ) { 431 437 432 438 // Get activity related links 433 439 $post_permalink = get_permalink( $recorded_comment->comment_post_ID );