aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 3f866754f..6a0ad05c4 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1295,6 +1295,10 @@ function register_user($username, $password, $name, $email, $allow_multiple_emai
if ($invitecode == generate_invite_code($friend_user->username)) {
$user->addFriend($friend_guid);
$friend_user->addFriend($user->guid);
+
+ // @todo Should this be in addFriend?
+ add_to_river('friends/river/create', 'friend', $user->getGUID(), $friend_guid);
+ add_to_river('friends/river/create', 'friend', $friend_guid, $user->getGUID());
}
}
}