[buddypress-trac] [BuddyPress] #3980: bp_activity_at_name_filter_updates() causes activity to be saved twice

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Feb 5 03:33:48 UTC 2012


#3980: bp_activity_at_name_filter_updates() causes activity to be saved twice
--------------------------+-----------------------------
 Reporter:  r-a-y         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Activity      |    Version:  1.5
 Severity:  normal        |   Keywords:  dev-feedback
--------------------------+-----------------------------
 Because bp_activity_at_name_filter_updates() resaves the activity a second
 time:
 http://buddypress.trac.wordpress.org/browser/tags/1.5.3.1/bp-activity/bp-
 activity-filters.php#L184
 http://buddypress.trac.wordpress.org/browser/tags/1.5.3.1/bp-activity/bp-
 activity-filters.php#L192

 This can cause complications for plugins relying on the
 "bp_activity_after_save" as their functions will run twice.

 Case in point, the Group Email subscription plugin relies on the
 "bp_activity_after_save" hook.  So when an @mention is used, the Group
 Email plugin will send another copy of the email as well.

 Not sure what the best solution for this is.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3980>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list