Fix nodeinfo query on split-domain instances
This commit is contained in:
parent
3bd0a1d6fe
commit
d6cd60fe6e
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ export async function initInstance(client, instance) {
|
||||||
typeof link.rel === 'string' &&
|
typeof link.rel === 'string' &&
|
||||||
link.rel.startsWith('http://nodeinfo.diaspora.software/ns/schema/'),
|
link.rel.startsWith('http://nodeinfo.diaspora.software/ns/schema/'),
|
||||||
)?.href;
|
)?.href;
|
||||||
if (nodeInfoUrl && nodeInfoUrl.startsWith(urlBase)) {
|
if (nodeInfoUrl) {
|
||||||
nodeInfo = await (await fetch(nodeInfoUrl)).json();
|
nodeInfo = await (await fetch(nodeInfoUrl)).json();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue