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:','');
|
let name = resource.replace('acct:','');
|
||||||
name = name.substr(0,name.indexOf('@'));
|
name = name.substr(0,name.indexOf('@'));
|
||||||
|
|
||||||
// This might help with webfinger detection
|
let p = check_if_in_friends(name + "=.ed25519");
|
||||||
// let encoded_name = encodeURIComponent(name);
|
|
||||||
|
|
||||||
let p = check_if_in_friends(name);
|
|
||||||
|
|
||||||
p.then((result) => {
|
p.then((result) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
|
@ -50,7 +47,7 @@ function get_webfinger(req, res) {
|
||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
rel: 'self',
|
rel: 'self',
|
||||||
type: 'application/activitypub+json',
|
type: 'application/activity+json',
|
||||||
href: `https://${DOMAIN}/u/${name}`
|
href: `https://${DOMAIN}/u/${name}`
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -72,10 +69,7 @@ function get_user(req, res){
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
// This might help with webfinger detection
|
let p = check_if_in_friends(name + "=.ed25519");
|
||||||
// let encoded_name = encodeURIComponent(name);
|
|
||||||
|
|
||||||
let p = check_if_in_friends(name);
|
|
||||||
|
|
||||||
p.then((result) => {
|
p.then((result) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|
Loading…
Reference in a new issue