Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Blog Comment Link in Activity Stream Broken has ID# Twice


Jeff Sayre
Participant

@jeffsayre

Okay, I did not include the entire code line in my post above. Line 431 (430 for you) should read as follows:

`$comment_link = get_permalink( $comment->comment_post_ID ) . ‘#comment-‘ . $comment_id;
$activity_action = sprintf( __( ‘%1$s commented on the blog post %2$s’, ‘buddypress’ ), bp_core_get_userlink( $user_id ), ‘comment_ID . ‘”>’ . $comment->post->post_title . ‘‘ );`

What you need to do is this:

`$comment_link = get_permalink( $comment->comment_post_ID ) . ‘#comment-’ . $comment_id;
$activity_action = sprintf( __( ‘%1$s commented on the blog post %2$s’, ‘buddypress’ ), bp_core_get_userlink( $user_id ), ‘‘ . $comment->post->post_title . ‘‘ );`

Keep (or replace) the first line as is. Make the small change to the second line. You are removing this from the end of the string:

` ‘#comment-‘ . $comment->comment_ID .`

Code:
testing
Skip to toolbar