X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fxrd.php;h=6a5fdbbdb9257b78476789762bd99b5774fa25ab;hb=d72473fd512a63c2831b943834fae3efba3896b8;hp=87766ca26e5890d7d33605c82c29d70e517181be;hpb=e45206ae5d92f99b5f6d027682001ccefd910eec;p=friendica.git diff --git a/mod/xrd.php b/mod/xrd.php index 87766ca26e..6a5fdbbdb9 100644 --- a/mod/xrd.php +++ b/mod/xrd.php @@ -80,6 +80,7 @@ function xrd_json($a, $uri, $alias, $profile_url, $r) ['rel' => NAMESPACE_DFRN, 'href' => $profile_url], ['rel' => NAMESPACE_FEED, 'type' => 'application/atom+xml', 'href' => System::baseUrl().'/dfrn_poll/'.$r['nickname']], ['rel' => 'http://webfinger.net/rel/profile-page', 'type' => 'text/html', 'href' => $profile_url], + ['rel' => 'self', 'type' => 'application/activity+json', 'href' => $profile_url], ['rel' => 'http://microformats.org/profile/hcard', 'type' => 'text/html', 'href' => System::baseUrl().'/hcard/'.$r['nickname']], ['rel' => NAMESPACE_POCO, 'href' => System::baseUrl().'/poco/'.$r['nickname']], ['rel' => 'http://webfinger.net/rel/avatar', 'type' => 'image/jpeg', 'href' => System::baseUrl().'/photo/profile/'.$r['uid'].'.jpg'], @@ -92,9 +93,6 @@ function xrd_json($a, $uri, $alias, $profile_url, $r) ['rel' => 'http://purl.org/openwebauth/v1', 'type' => 'application/x-dfrn+json', 'href' => System::baseUrl().'/owa'] ] ]; - if ($r['uid'] == 180) { - $json['links'][] = ['rel' => 'self', 'type' => 'application/activity+json', 'href' => $profile_url]; - } echo json_encode($json); killme();