From 01cc0c057331fd026118fd65b8aa46844415da04 Mon Sep 17 00:00:00 2001 From: DanielMowitz Date: Mon, 9 Sep 2019 16:56:34 +0200 Subject: [PATCH] Changed the literal typo that stopped webfinger detection :/ --- server.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/server.js b/server.js index 085d45f..183cd7e 100644 --- a/server.js +++ b/server.js @@ -37,10 +37,7 @@ function get_webfinger(req, res) { let name = resource.replace('acct:',''); name = name.substr(0,name.indexOf('@')); - // This might help with webfinger detection - // let encoded_name = encodeURIComponent(name); - - let p = check_if_in_friends(name); + let p = check_if_in_friends(name + "=.ed25519"); p.then((result) => { if (result) { @@ -50,7 +47,7 @@ function get_webfinger(req, res) { links: [ { rel: 'self', - type: 'application/activitypub+json', + type: 'application/activity+json', href: `https://${DOMAIN}/u/${name}` } ], @@ -72,10 +69,7 @@ function get_user(req, res){ } else { - // This might help with webfinger detection - // let encoded_name = encodeURIComponent(name); - - let p = check_if_in_friends(name); + let p = check_if_in_friends(name + "=.ed25519"); p.then((result) => { if (result) {