Skip to:
Content

BuddyPress.org

Ticket #2028: 2028.patch

File 2028.patch, 1.3 KB (added by sorich87, 15 years ago)
  • bp-blogs.php

     
    369369        if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multisite() ) {
    370370                /* Record in activity streams */
    371371                $comment_link = get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment_id;
    372                 $activity_action = sprintf( __( '%1$s commented on the blog post %2$s', 'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' . $comment_link . '#comment-' . $comment->comment_ID . '">' . $comment->post->post_title . '</a>' );
     372                if ( bp_core_is_multisite() ) {
     373                        $blog_link = sprintf( __( ' on the blog %1$s', 'buddypress' ), '<a href="' . get_blog_option( $recorded_comment->blog_id, 'home' ) . '">' . get_blog_option( $recorded_comment->blog_id, 'blogname' ) . '</a>' );
     374                } else {
     375                        $blog_link = '';
     376                }
     377               
     378                $activity_action = sprintf( __( '%1$s commented on the blog post %2$s%3$s', 'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' . $comment_link . '#comment-' . $comment->comment_ID . '">' . $comment->post->post_title . '</a>', $blog_link );
    373379                $activity_content = $comment->comment_content;
    374380
    375381                /* Record this in activity streams */