diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-01 02:20:13 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-01 02:20:13 +0000 |
commit | 2e21414d2d8a8f2f72f0781c68223e0315ed0374 (patch) | |
tree | e25e127862f08d2669d786d7364d50d6db6ab036 /engine | |
parent | 50176b8beae50537bf8308cf13ae51ff6c8cff5e (diff) | |
download | elgg-2e21414d2d8a8f2f72f0781c68223e0315ed0374.tar.gz elgg-2e21414d2d8a8f2f72f0781c68223e0315ed0374.tar.bz2 |
Fixes #678. Friending appears in the river for invited new users.
git-svn-id: http://code.elgg.org/elgg/trunk@3876 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/users.php | 4 |
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()); } } } |