I am using BuddyPress (v5.0.0.) with bbPress (v.2.5.14) and I am noticing an issue when I have a forum topic with multiple pages. When I add a new reply it creates a BuddyPress activity that stores in the DB a primary_link of the type
/forums/topic/topic-name/page/XX/#post-YYYY. For example
The problem is that if I delete some previous replies from page 1 and this reply moves to the first page from the second page it was previously, its activity permalink (primary_link) remains the same and the activity still points to page 2 of the topic (not page 1 that is its new page).
Is there any fix for this?