Changeset 3116
- Timestamp:
- 07/04/2010 04:50:13 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-blogs.php
r3053 r3116 473 473 if ( get_blog_option( $blog_id, 'blog_public' ) ) { 474 474 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 475 479 // 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; 479 482 480 483 // Record in activity streams 481 484 bp_blogs_record_activity( array( 482 'user_id' 483 'action' 484 'content' 485 'primary_link' 486 'type' 487 'item_id' 488 'secondary_item_id' 489 'recorded_time' 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 490 493 ) ); 491 494
Note: See TracChangeset
for help on using the changeset viewer.