Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/19/2016 07:55:22 PM (9 years ago)
Author:
imath
Message:

Make sure notifications are marked as read when loading new mentions from the activity directory.

When a user has new mentions, the mentions tab of the activity directory displays the count of the new mantions available. When clicking on this tab, we need to make sure the corresponding notification entries are marked as read by the Notifications component.

Fixes #6687

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-functions.php

    r10455 r10457  
    134134    bp_delete_user_meta( $user_id, 'bp_new_mention_count' );
    135135    bp_delete_user_meta( $user_id, 'bp_new_mentions'      );
     136
     137    /**
     138     * Fires once mentions has been reset for a given user.
     139     *
     140     * @since  2.5.0
     141     *
     142     * @param  int $user_id The id of the user whose unread mentions are being reset.
     143     */
     144    do_action( 'bp_activity_clear_new_mentions', $user_id );
    136145}
    137146
Note: See TracChangeset for help on using the changeset viewer.