Skip to:
Content

BuddyPress.org

Ticket #4892: 4892.02.patch

File 4892.02.patch, 1.4 KB (added by DJPaul, 7 years ago)
  • bp-activity/bp-activity-functions.php

    diff --git a/bp-activity/bp-activity-functions.php b/bp-activity/bp-activity-functions.php
    index 851a447..a14edad 100644
    a b function bp_activity_post_update( $args = '' ) { 
    10901090        // Record this on the user's profile
    10911091        $from_user_link   = bp_core_get_userlink( $user_id );
    10921092        $activity_action  = sprintf( __( '%s posted an update', 'buddypress' ), $from_user_link );
    1093         $activity_content = $content;
     1093        $activity_content = apply_filters( 'bp_activity_latest_update_content', $content );
    10941094        $primary_link     = bp_core_get_userlink( $user_id, false, true );
    10951095
    10961096        // Now write the values
    function bp_activity_post_update( $args = '' ) { 
    11031103                'type'         => 'activity_update'
    11041104        ) );
    11051105
    1106         $activity_content = apply_filters( 'bp_activity_latest_update_content', $content );
    1107 
    11081106        // Add this update to the "latest update" usermeta so it can be fetched anywhere.
    1109         bp_update_user_meta( bp_loggedin_user_id(), 'bp_latest_update', array( 'id' => $activity_id, 'content' => $content ) );
     1107        bp_update_user_meta( bp_loggedin_user_id(), 'bp_latest_update', array( 'id' => $activity_id, 'content' => $activity_content ) );
    11101108
    1111         do_action( 'bp_activity_posted_update', $content, $user_id, $activity_id );
     1109        do_action( 'bp_activity_posted_update', $activity_content, $user_id, $activity_id );
    11121110
    11131111        return $activity_id;
    11141112}