Skip to:
Content

BuddyPress.org

Ticket #4892: bp-activity-functions.2.diff

File bp-activity-functions.2.diff, 834 bytes (added by saurabhshukla, 7 years ago)
  • bp-activity-functions.php

     
    11061106        $activity_content = apply_filters( 'bp_activity_latest_update_content', $content );
    11071107
    11081108        // 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 ) );
     1109        bp_update_user_meta( bp_loggedin_user_id(), 'bp_latest_update', array( 'id' => $activity_id, 'content' => $activity_content ) );
    11101110
    1111         do_action( 'bp_activity_posted_update', $content, $user_id, $activity_id );
     1111        do_action( 'bp_activity_posted_update', $activity_content, $user_id, $activity_id );
    11121112
    11131113        return $activity_id;
    11141114}