From: Evan Prodromou Date: Wed, 22 Sep 2010 16:08:17 +0000 (-0400) Subject: save a URI with the user X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4d01f8fbb650ea246d24ebde1001c8c42f98faa4;p=quix0rs-gnu-social.git save a URI with the user --- 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); }