Skip to:
Content

bbPress.org

Ticket #2690: 2690.01.patch

File 2690.01.patch, 629 bytes (added by r-a-y, 7 years ago)
  • src/includes/extend/buddypress/activity.php

     
    275275                }
    276276
    277277                // Get the activity stream item, bail if it doesn't exist
    278                 $existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all', ) );
    279                 if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) ) {
     278                $existing = new BP_Activity_Activity( $activity_id );
     279                if ( empty( $existing->component ) ) {
    280280                        return null;
    281281                }
    282282