Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


Jeff Sayre
Participant

@jeffsayre

It appears that some code in function bp_blogs_record_comment() of bp-blogs.php is causing the issue. In BP v1.2.3, if you look at line 430 and 431, you can see the culprit.

`$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 . ‘‘ );`

If you look at line 431 near the end, the comment ID is appended to the built string. But, that comment ID has already been included in the variable $comment_link which is built above on line 430. So, you get a doubling of the comment ID.

In the trunk version of BP, the latest working copy version, function bp_blogs_record_comment() is located in a different place and these two code lines appear at 371 and 372.

Please log into Trac and report this as a bug ( create a new ticket ) as it will simply get lost in the support forums. You log into Trac using the same credentials as you use to log into this site.

You can post a link to this thread to provide more details.

Skip to toolbar