mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-05 13:43:09 +02:00
fix(backend): fix typo lnik
to link
(#11740)
This commit is contained in:
parent
ba16abb9f3
commit
60fe5d6824
1 changed files with 4 additions and 4 deletions
|
@ -142,10 +142,10 @@ export class FetchInstanceMetadataService {
|
||||||
|
|
||||||
const links = wellknown.links as any[];
|
const links = wellknown.links as any[];
|
||||||
|
|
||||||
const lnik1_0 = links.find(link => link.rel === 'http://nodeinfo.diaspora.software/ns/schema/1.0');
|
const link1_0 = links.find(link => link.rel === 'http://nodeinfo.diaspora.software/ns/schema/1.0');
|
||||||
const lnik2_0 = links.find(link => link.rel === 'http://nodeinfo.diaspora.software/ns/schema/2.0');
|
const link2_0 = links.find(link => link.rel === 'http://nodeinfo.diaspora.software/ns/schema/2.0');
|
||||||
const lnik2_1 = links.find(link => link.rel === 'http://nodeinfo.diaspora.software/ns/schema/2.1');
|
const link2_1 = links.find(link => link.rel === 'http://nodeinfo.diaspora.software/ns/schema/2.1');
|
||||||
const link = lnik2_1 ?? lnik2_0 ?? lnik1_0;
|
const link = link2_1 ?? link2_0 ?? link1_0;
|
||||||
|
|
||||||
if (link == null) {
|
if (link == null) {
|
||||||
throw new Error('No nodeinfo link provided');
|
throw new Error('No nodeinfo link provided');
|
||||||
|
|
Loading…
Reference in a new issue