Skip to:
Content

bbPress.org

Ticket #2690: 2690.2-5.patch

File 2690.2-5.patch, 717 bytes (added by r-a-y, 5 years ago)
  • includes/extend/buddypress/activity.php

     
    274274                        return null;
    275275
    276276                // Get the activity stream item, bail if it doesn't exist
    277                 $existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all', ) );
    278                 if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) )
     277                $existing = new BP_Activity_Activity( $activity_id );
     278                if ( empty( $existing->component ) ) {
    279279                        return null;
     280                }
    280281
    281282                // Return the activity ID since we've verified the connection
    282283                return $activity_id;