From: Evan Prodromou Date: Thu, 14 Oct 2010 15:07:37 +0000 (-0400) Subject: accept profile URL as a LRDD identifier X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ecb582e41900b9a8fe0cc01eac9c68b4da61d734;p=quix0rs-gnu-social.git accept profile URL as a LRDD identifier --- diff --git a/plugins/OStatus/actions/userxrd.php b/plugins/OStatus/actions/userxrd.php index c9b1d0a5be..575a07c409 100644 --- a/plugins/OStatus/actions/userxrd.php +++ b/plugins/OStatus/actions/userxrd.php @@ -46,7 +46,15 @@ class UserxrdAction extends XrdAction } } else { $this->user = User::staticGet('uri', $this->uri); + if (empty($this->user)) { + // try and get it by profile url + $profile = Profile::staticGet('profileurl', $this->uri); + if (!empty($profile)) { + $this->user = User::staticGet('id', $profile->id); + } + } } + if (!$this->user) { $this->clientError(_m('No such user.'), 404); return false;