]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/WebFinger/lib/webfingerresource/profile.php
Notice metadata for WebFinger. Not sure if implemented properly.
[quix0rs-gnu-social.git] / plugins / WebFinger / lib / webfingerresource / profile.php
index 49353145ed3f242625c9868f4257bc0f0fe5214f..5bfbda0f2961a2005cba2cbb9d1b7b79bc0c1dea 100644 (file)
@@ -11,6 +11,8 @@
 
 class WebFingerResource_Profile extends WebFingerResource
 {
+    const PROFILEPAGE = 'http://webfinger.net/rel/profile-page';
+
     public function __construct(Profile $object)
     {
         // The type argument above verifies that it's our class
@@ -53,7 +55,8 @@ class WebFingerResource_Profile extends WebFingerResource
     {
         if (Event::handle('StartWebFingerProfileLinks', array($xrd, $this->object))) {
 
-            parent::updateXRD($xrd);
+            $xrd->links[] = new XML_XRD_Element_Link(self::PROFILEPAGE,
+                                        $this->object->getUrl(), 'text/html');
 
             // XFN
             $xrd->links[] = new XML_XRD_Element_Link('http://gmpg.org/xfn/11',