diff options
author | Sem <sembrestels@riseup.net> | 2012-02-07 23:50:59 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-02-07 23:50:59 +0100 |
commit | 3bbff4f7bd1ae793a99ba5c6b04f17e4cdb34514 (patch) | |
tree | fb17701db019bc6cab0f2f837e73cf9ec98c6785 /actions | |
parent | b19fa6f54d89137ca55b3ddd343c5f22da16839a (diff) | |
download | elgg-3bbff4f7bd1ae793a99ba5c6b04f17e4cdb34514.tar.gz elgg-3bbff4f7bd1ae793a99ba5c6b04f17e4cdb34514.tar.bz2 |
Friendship must be reciprocal.
Diffstat (limited to 'actions')
-rw-r--r-- | actions/friends/add.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actions/friends/add.php b/actions/friends/add.php index 1ead0dc9e..46e2a6c09 100644 --- a/actions/friends/add.php +++ b/actions/friends/add.php @@ -12,6 +12,8 @@ if(check_entity_relationship($friend->guid, "friendrequest", $user->guid) || check_entity_relationship($friend->guid, "friend", $user->guid)) { $user->addFriend($friend->guid); + + $friend->addFriend($user->guid); remove_entity_relationship($friend->guid, "friendrequest", $user->guid); add_to_river('river/relationship/friend/create', 'friend', $user->guid, $friend->guid); |