Skip to:

Opened 3 years ago

Closed 3 years ago

#2964 closed defect (invalid)

Deleting a Topic does not delete the corresponding BuddyPress activity

Reported by: konnektiv Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:


If a topic or reply is deleted, the corresponding BuddyPress activity entry is not deleted. This happens due to the function get_activity_id not properly returning the activity_id. The underlying issue is that the function bp_activity_get_specific does not set the 'total' field in the returned array. The attached patch fixes the issue by directly counting the returned activities.

Attachments (1)

fix_get_activity_id.patch (713 bytes) - added by konnektiv 3 years ago.
Patch to correctly return activity_id

Download all attachments as: .zip

Change History (2)

3 years ago

Patch to correctly return activity_id

#1 @thebrandonallen
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

@konnektiv Thanks for the report and patch! This was fixed in [5857] (albeit, under a different approach), and will be available in the upcoming 2.6 release.

Note: See TracTickets for help on using tickets.