Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Duplicate activity entries when bbPress replies edited

@spanda

Participant

Thanks for the reply, unfortunately that patch didn’t help. Here’s what I have in wp-content/plugins/bbpress/includes/extend/buddypress/activity.php:

	// Get the activity stream item, bail if it doesn't exist
//  ===== BBPRESS BUG WHICH RETURNS DUPLICATE =====
// ===== bbp_reply_created UPON EDITS                            =====
//		$existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all', ) );
//		if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) )
// ===== END BUGGY CODE / START PATCH                    =====
		$existing = new BP_Activity_Activity( $activity_id ); 
 		if ( empty( $existing->component ) )
// ===== END PATCH                                                           =====
			return null;
		$existing = new BP_Activity_Activity( $activity_id ); 
 		if ( empty( $existing->component ) )
		// Return the activity ID since we've verified the connection
			return $activity_id;
	}
Skip to toolbar