浏览代码

Update Webfinger lexer

Daniel Supernault 7 年之前
父节点
当前提交
14a4a69b3e
共有 1 个文件被更改,包括 8 次插入34 次删除
  1. 8 34
      app/Util/Webfinger/Webfinger.php

+ 8 - 34
app/Util/Webfinger/Webfinger.php

@@ -52,49 +52,23 @@ class Webfinger {
         'type' => 'text/html',
         'href' => $user->url()
       ],
-      [
-        'rel' => 'http://gmpg.org/xfn/11',
-        'type' => 'text/html',
-        'href' => $user->url()
-      ],
-      [
-        'rel' => 'describedby',
-        'type' => 'application\/rdf+xml',
-        'href' => $user->url('/foaf')
-      ],
-      [
-        'rel' => 'http://apinamespace.org/atom',
-        'type' => 'application/atomsvc+xml',
-        'href' => url('/api/statusnet/app/service/admin.xml')
-      ],
-      [
-        'rel' => 'http://apinamespace.org/twitter',
-        'href' => url('/api/')
-      ],
-      [
-        'rel' => 'http://specs.openid.net/auth/2.0/provider',
-        'href' => $user->url()
-      ],
       [
         'rel' => 'http://schemas.google.com/g/2010#updates-from',
         'type' => 'application/atom+xml',
-        'href' => url("/api/statuses/user_timeline/{$user->id}.atom")
+        'href' => url("/users/{$user->username}.atom")
       ],
       [
-        'rel' => 'magic-public-key',
-        'href' => ''
+        'rel' => 'self',
+        'type' => 'application/activity+json',
+        'href' => $user->permalink()
       ],
       [
-        'rel' => 'salmon',
-        'href' => $user->url('/salmon')
-      ],
-      [
-        'rel' => 'http://salmon-protocol.org/ns/salmon-replies',
-        'href' => $user->url('/salmon')
+        'rel' => 'magic-public-key',
+        'href' => null//$user->public_key
       ],
       [
-        'rel' => 'http://salmon-protocol.org/ns/salmon-mention',
-        'href' => $user->url('/salmon')
+        'rel' => 'salmon',
+        'href' => $user->permalink('/salmon')
       ],
       [
         'rel' => 'http://ostatus.org/schema/1.0/subscribe',