Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/20/2014 04:29:56 PM (11 years ago)
Author:
imath
Message:

Make sure activities about a friendship are removed when this friendship is cancelled

Fixes #6055

File:
1 edited

Legend:

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

    r9174 r9241  
    112112    do_action( 'friends_before_friendship_delete', $friendship_id, $initiator_userid, $friend_userid );
    113113
    114     // Remove the activity stream item for the user who canceled the friendship
    115     friends_delete_activity( array( 'item_id' => $friendship_id, 'type' => 'friendship_accepted', 'user_id' => bp_displayed_user_id() ) );
     114    // Remove the activity stream items about the friendship id
     115    friends_delete_activity( array( 'item_id' => $friendship_id, 'type' => 'friendship_created', 'user_id' => 0 ) );
    116116
    117117    /**
Note: See TracChangeset for help on using the changeset viewer.