Skip to:
Content

bbPress.org

Changeset 4789


Ignore:
Timestamp:
03/06/2013 06:39:31 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Pass complete content into activity stream items. Create excerpt on output rather than input. Fixes #2237.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/extend/buddypress/activity.php

    r4739 r4789  
    421421
    422422        // Activity action & text
    423         $activity_text    = sprintf( __( '%1$s started the topic %2$s in the forum %3$s', 'bbpress' ), $user_link, $topic_link, $forum_link    );
    424         $activity_action  = apply_filters( 'bbp_activity_topic_create',                $activity_text, $user_id,   $topic_id,   $forum_id      );
    425         $activity_content = apply_filters( 'bbp_activity_topic_create_excerpt',        bp_create_excerpt( $topic_content ),     $topic_content );
     423        $activity_text    = sprintf( __( '%1$s started the topic %2$s in the forum %3$s', 'bbpress' ), $user_link, $topic_link, $forum_link );
     424        $activity_action  = apply_filters( 'bbp_activity_topic_create',         $activity_text, $user_id,   $topic_id,   $forum_id );
     425        $activity_content = apply_filters( 'bbp_activity_topic_create_excerpt', $topic_content                                    );
    426426
    427427        // Compile the activity stream results
     
    571571
    572572        // Activity action & text
    573         $activity_text    = sprintf( __( '%1$s replied to the topic %2$s in the forum %3$s', 'bbpress' ), $user_link, $topic_link, $forum_link    );
    574         $activity_action  = apply_filters( 'bbp_activity_reply_create',         $activity_text, $user_id,   $reply_id,   $topic_id      );
    575         $activity_content = apply_filters( 'bbp_activity_reply_create_excerpt', bp_create_excerpt( $reply_content ),     $reply_content );
     573        $activity_text    = sprintf( __( '%1$s replied to the topic %2$s in the forum %3$s', 'bbpress' ), $user_link, $topic_link, $forum_link );
     574        $activity_action  = apply_filters( 'bbp_activity_reply_create',         $activity_text, $user_id, $reply_id,  $topic_id );
     575        $activity_content = apply_filters( 'bbp_activity_reply_create_excerpt', $reply_content                                  );
    576576
    577577        // Compile the activity stream results
Note: See TracChangeset for help on using the changeset viewer.