Changed the literal typo that stopped webfinger detection :/
This commit is contained in:
parent
31a72bd500
commit
01cc0c0573
1 changed files with 3 additions and 9 deletions
12
server.js
12
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) {
|
||||
|
|
Loading…
Reference in a new issue