Skip to:
Content

BuddyPress.org

Ticket #6158: 6158.patch

File 6158.patch, 1.1 KB (added by jreeve, 7 years ago)

properly hook groups_update_last_activity instead of calling groups_update_groupmeta

  • bp-groups/bp-groups-activity.php

     
    345345
    346346        groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
    347347}
     348add_action( 'groups_join_group',           'groups_update_last_activity' );
    348349add_action( 'groups_leave_group',          'groups_update_last_activity' );
    349350add_action( 'groups_created_group',        'groups_update_last_activity' );
    350351add_action( 'groups_new_forum_topic',      'groups_update_last_activity' );
  • bp-groups/bp-groups-functions.php

     
    439439                'user_id' => $user_id,
    440440        ) );
    441441
    442         // Modify group meta
    443         groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
    444 
    445442        do_action( 'groups_join_group', $group_id, $user_id );
    446443
    447444        return true;