Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2010 04:50:13 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2401 props hotforwords and r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-blogs.php

    r3053 r3116  
    473473        if ( get_blog_option( $blog_id, 'blog_public' ) ) {
    474474
     475                // Get activity related links
     476                $post_permalink         = get_permalink( $$recorded_comment->comment_post_ID );
     477                $comment_link           = htmlspecialchars( get_comment_link( $recorded_comment->comment_ID ) );
     478
    475479                // Prepare to record in activity streams
    476                 $comment_link = htmlspecialchars( get_comment_link( $recorded_comment->comment_ID ) );
    477                 $activity_action = sprintf( __( '%s commented on the blog post %s', 'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' . $comment_link . '">' . $recorded_comment->post->post_title . '</a>' );
    478                 $activity_content = $recorded_comment->comment_content;
     480                $activity_action        = sprintf( __( '%s commented on the blog post %s', 'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' . $post_permalink . '">' . $recorded_comment->post->post_title . '</a>' );
     481                $activity_content       = $recorded_comment->comment_content;
    479482
    480483                // Record in activity streams
    481484                bp_blogs_record_activity( array(
    482                         'user_id' => $user_id,
    483                         'action' => apply_filters( 'bp_blogs_activity_new_comment_action', $activity_action, &$recorded_comment, $comment_link ),
    484                         'content' => apply_filters( 'bp_blogs_activity_new_comment_content', $activity_content, &$recorded_comment, $comment_link ),
    485                         'primary_link' => apply_filters( 'bp_blogs_activity_new_comment_primary_link', $comment_link, &$recorded_comment ),
    486                         'type' => 'new_blog_comment',
    487                         'item_id' => $blog_id,
    488                         'secondary_item_id' => $comment_id,
    489                         'recorded_time' => $recorded_comment->comment_date_gmt
     485                        'user_id'                       => $user_id,
     486                        'action'                        => apply_filters( 'bp_blogs_activity_new_comment_action', $activity_action, &$recorded_comment, $comment_link ),
     487                        'content'                       => apply_filters( 'bp_blogs_activity_new_comment_content', $activity_content, &$recorded_comment, $comment_link ),
     488                        'primary_link'          => apply_filters( 'bp_blogs_activity_new_comment_primary_link', $comment_link, &$recorded_comment ),
     489                        'type'                          => 'new_blog_comment',
     490                        'item_id'                       => $blog_id,
     491                        'secondary_item_id'     => $comment_id,
     492                        'recorded_time'         => $recorded_comment->comment_date_gmt
    490493                ) );
    491494
Note: See TracChangeset for help on using the changeset viewer.