From: Mikael Nordfeldth Date: Wed, 17 Feb 2016 21:36:33 +0000 (+0100) Subject: Make the Link header give URI for WebFinger lookup X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ade4518ae47b94daded408fc921b439e209d9da4;p=quix0rs-gnu-social.git Make the Link header give URI for WebFinger lookup --- diff --git a/plugins/WebFinger/WebFingerPlugin.php b/plugins/WebFinger/WebFingerPlugin.php index ce8c847aa7..1677501a20 100644 --- a/plugins/WebFinger/WebFingerPlugin.php +++ b/plugins/WebFinger/WebFingerPlugin.php @@ -144,8 +144,8 @@ class WebFingerPlugin extends Plugin public function onStartShowHTML($action) { if ($action instanceof ShowstreamAction) { - $acct = 'acct:'. $action->getTarget()->getNickname() .'@'. common_config('site', 'server'); - $url = common_local_url('webfinger') . '?resource='.$acct; + $resource = $action->getTarget()->getUri(); + $url = common_local_url('webfinger') . '?resource='.urlencode($resource); foreach (array(Discovery::JRD_MIMETYPE, Discovery::XRD_MIMETYPE) as $type) { header('Link: <'.$url.'>; rel="'. Discovery::LRDD_REL.'"; type="'.$type.'"', false);