For BP 2.2+, this commit mirrors the edit functionality of bp_activity_catch_transition_post_type_status() and modifies bp_groupblog_set_group_to_post_activity() to look for some existing variables to prevent unnecessary queries.
Let me know what you think, @boonebgorges.
Commit 1246bd3 is a minor change to support changing the activity user ID if the post author is changed.
Changes in BuddyPress 2.2 to support custom post type activity recording broke how groupblog post activity items are saved during edits: https://buddypress.trac.wordpress.org/browser/tags/2.2.1/src/bp-activity/bp-activity-actions.php?marks=797#L777 https://buddypress.trac.wordpress.org/browser/tags/2.2.1/src/bp-activity/bp-activity-functions.php?marks=1949,1952,1957#L1926
For BP 2.2+, this commit mirrors the edit functionality of
bp_activity_catch_transition_post_type_status()
and modifiesbp_groupblog_set_group_to_post_activity()
to look for some existing variables to prevent unnecessary queries.Let me know what you think, @boonebgorges.
Commit 1246bd3 is a minor change to support changing the activity user ID if the post author is changed.