aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/friends/add.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/friends/add.php b/actions/friends/add.php
index e87597649..9dd8397bc 100644
--- a/actions/friends/add.php
+++ b/actions/friends/add.php
@@ -27,8 +27,11 @@
register_error(sprintf(elgg_echo("friends:add:failure"),$friend->name));
$errors = true;
}
- if (!$errors)
+ if (!$errors){
+ // add to river
+ add_to_river('friends/river/create','friend',$_SESSION['user']->guid,$friend_guid);
system_message(sprintf(elgg_echo("friends:add:successful"),$friend->name));
+ }
// Forward to the user friends page
forward("pg/friends/" . $_SESSION['user']->username . "/");