Skip to:
Content

BuddyPress.org

Ticket #6158: 6158.02.patch

File 6158.02.patch, 1.4 KB (added by r-a-y, 6 years ago)
  • src/bp-groups/bp-groups-activity.php

     
    400400
    401401        groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
    402402}
     403add_action( 'groups_join_group',           'groups_update_last_activity' );
    403404add_action( 'groups_leave_group',          'groups_update_last_activity' );
    404405add_action( 'groups_created_group',        'groups_update_last_activity' );
    405406add_action( 'groups_new_forum_topic',      'groups_update_last_activity' );
  • src/bp-groups/bp-groups-functions.php

     
    165165                $member->date_modified = bp_core_current_time();
    166166                $member->save();
    167167
    168                 groups_update_groupmeta( $group->id, 'last_activity', bp_core_current_time() );
    169 
    170168                /**
    171169                 * Fires after the creation of a new group and a group creator needs to be made.
    172170                 *
     
    193191        }
    194192
    195193        /**
    196          * Fires after the creation of a group.
     194         * Fires after the creation or update of a group.
    197195         *
    198196         * @since BuddyPress (1.0.0)
    199197         *
     
    502500                'user_id' => $user_id,
    503501        ) );
    504502
    505         // Modify group meta
    506         groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
    507 
    508503        /**
    509504         * Fires after a user joins a group.
    510505         *