[buddypress-trac] [BuddyPress] #2342: Blog Comment Link in Activity Stream Broken has ID# Twice
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Sun Apr 25 17:45:35 UTC 2010
#2342: Blog Comment Link in Activity Stream Broken has ID# Twice
-------------------------+--------------------------------------------------
Reporter: hotforwords | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.2.4
Component: Core | Keywords:
-------------------------+--------------------------------------------------
Comment(by hotforwords):
I figured out the proper fix, because the first link, the name of the Blog
Title is supposed to take you to the blog not the comment.. the later link
called View takes you to the Comment.
We want to fix the BLOG POST TITLE LINK without breaking the VIEW link.
So I fixed it this way:
On Line 429
Take this code:
{{{
$activity_action = sprintf( __( '%s commented on the blog post %s',
'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' .
$comment_link . '#comment-' . $comment->comment_ID . '">' .
$comment->post->post_title . '</a>' );
}}}
and change it to:
{{{
$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>' );
{{{
--
Ticket URL: <http://trac.buddypress.org/ticket/2342#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list