aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-12-08 21:54:34 +0100
committerSem <sembrestels@riseup.net>2011-12-08 21:54:34 +0100
commit862cec3dec4bdb4983a22db7d79d2aae4f1031fd (patch)
tree238390d39baefc4d4417623399d00cfb5e79b221 /actions
parentab09c2001bd9384c4e3c2964c5d1a39a0e91b013 (diff)
downloadelgg-862cec3dec4bdb4983a22db7d79d2aae4f1031fd.tar.gz
elgg-862cec3dec4bdb4983a22db7d79d2aae4f1031fd.tar.bz2
Added river on add a friend.
Diffstat (limited to 'actions')
-rw-r--r--actions/friends/add.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/actions/friends/add.php b/actions/friends/add.php
index 5d4ecc078..1ead0dc9e 100644
--- a/actions/friends/add.php
+++ b/actions/friends/add.php
@@ -14,6 +14,7 @@ if(check_entity_relationship($friend->guid, "friendrequest", $user->guid)
$user->addFriend($friend->guid);
remove_entity_relationship($friend->guid, "friendrequest", $user->guid);
+ add_to_river('river/relationship/friend/create', 'friend', $user->guid, $friend->guid);
system_message(elgg_echo("friends:add:successful", array($friend->name)));
} elseif(add_entity_relationship($user->guid, "friendrequest", $friend->guid)) {