Skip to:
Content

BuddyPress.org

Changeset 2333


Ignore:
Timestamp:
01/18/2010 12:13:44 PM (16 years ago)
Author:
apeatling
Message:

Fixes #1588 - friendship accepted notification clear.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends.php

    r2332 r2333  
    684684}
    685685
     686function friends_clear_friend_notifications() {
     687    global $bp;
     688
     689    if ( isset($_GET['new']) )
     690        bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, 'friends', 'friendship_accepted' );
     691}
     692add_action( 'bp_activity_screen_my_activity', 'friends_clear_friend_notifications' );
     693
    686694// List actions to clear object caches on
    687695add_action( 'friends_friendship_accepted', 'friends_clear_friend_object_cache' );
  • trunk/bp-xprofile.php

    r2298 r2333  
    286286    global $bp;
    287287
    288     // If this is a first visit to a new friends profile, delete the friend accepted notifications for the
    289     // logged in user, only if $_GET['new'] is set.
    290     if ( isset($_GET['new']) )
    291         bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, 'friends', 'friendship_accepted' );
    292 
    293288    do_action( 'xprofile_screen_display_profile', $_GET['new'] );
    294289    bp_core_load_template( apply_filters( 'xprofile_template_display_profile', 'members/single/home' ) );
Note: See TracChangeset for help on using the changeset viewer.