From 4d01f8fbb650ea246d24ebde1001c8c42f98faa4 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 22 Sep 2010 12:08:17 -0400 Subject: [PATCH] save a URI with the user --- classes/User.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/classes/User.php b/classes/User.php index 080e338fe7..b85192b29c 100644 --- a/classes/User.php +++ b/classes/User.php @@ -282,7 +282,13 @@ class User extends Memcached_DataObject } $user->id = $id; - $user->uri = common_user_uri($user); + + if (!empty($uri)) { + $user->uri = $uri; + } else { + $user->uri = common_user_uri($user); + } + if (!empty($password)) { // may not have a password for OpenID users $user->password = common_munge_password($password, $id); } -- 2.39.5