From 14a4a69b3ee8085aa33f3cf3e6794a566074e1ba Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 19 May 2018 21:04:18 -0600 Subject: [PATCH] Update Webfinger lexer --- app/Util/Webfinger/Webfinger.php | 42 ++++++-------------------------- 1 file changed, 8 insertions(+), 34 deletions(-) diff --git a/app/Util/Webfinger/Webfinger.php b/app/Util/Webfinger/Webfinger.php index 4de7010e4..ecb760f1b 100644 --- a/app/Util/Webfinger/Webfinger.php +++ b/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' => 'self', + 'type' => 'application/activity+json', + 'href' => $user->permalink() ], [ 'rel' => 'magic-public-key', - 'href' => '' + 'href' => null//$user->public_key ], [ 'rel' => 'salmon', - 'href' => $user->url('/salmon') - ], - [ - 'rel' => 'http://salmon-protocol.org/ns/salmon-replies', - 'href' => $user->url('/salmon') - ], - [ - 'rel' => 'http://salmon-protocol.org/ns/salmon-mention', - 'href' => $user->url('/salmon') + 'href' => $user->permalink('/salmon') ], [ 'rel' => 'http://ostatus.org/schema/1.0/subscribe',