Skip to:
Content

BuddyPress.org

Ticket #2401: 2401.001.patch

File 2401.001.patch, 904 bytes (added by r-a-y, 15 years ago)

Patch based on hotforwords

  • buddypress/bp-blogs.php

     
    425425        if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multisite() ) {
    426426                /* Record in activity streams */
    427427                $comment_link = htmlspecialchars( get_comment_link( $comment->comment_ID ) );
    428                 $activity_action = sprintf( __( '%s commented on the blog post %s', 'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' . $comment_link . '">' . $comment->post->post_title . '</a>' );
     428                $activity_action = sprintf( __( '%s commented on the blog post %s', 'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' . get_permalink( $comment->comment_post_ID ) . '">' . $comment->post->post_title . '</a>' );
    429429                $activity_content = $comment->comment_content;
    430430
    431431                /* Record this in activity streams */