diff options
| author | slonkazoid <slonkazoid@slonk.ing> | 2024-07-14 16:11:02 +0300 |
|---|---|---|
| committer | slonkazoid <slonkazoid@slonk.ing> | 2024-07-14 16:11:02 +0300 |
| commit | 1fa92ad76304e80aea2c3bcfed598a121c765d39 (patch) | |
| tree | dfb3ceb52e1c0844807f3400a0b5105c6070a4b9 /packages/backend/src/core/WebfingerService.ts | |
| parent | replace useHttp with defaultProtocol (diff) | |
| download | sharkey-1fa92ad76304e80aea2c3bcfed598a121c765d39.tar.gz sharkey-1fa92ad76304e80aea2c3bcfed598a121c765d39.tar.bz2 sharkey-1fa92ad76304e80aea2c3bcfed598a121c765d39.zip | |
rename fetchHostMeta to fetchWebFingerTemplateFromHostMeta
Diffstat (limited to 'packages/backend/src/core/WebfingerService.ts')
| -rw-r--r-- | packages/backend/src/core/WebfingerService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/WebfingerService.ts b/packages/backend/src/core/WebfingerService.ts index 12f2bba624..a242dc5d42 100644 --- a/packages/backend/src/core/WebfingerService.ts +++ b/packages/backend/src/core/WebfingerService.ts @@ -34,7 +34,7 @@ export class WebfingerService { @bindThis public async webfinger(query: string): Promise<IWebFinger> { const hostMetaUrl = this.queryToHostMetaUrl(query); - const template = await this.fetchHostMeta(hostMetaUrl) ?? this.queryToWebFingerTemplate(query); + const template = await this.fetchWebFingerTemplateFromHostMeta(hostMetaUrl) ?? this.queryToWebFingerTemplate(query); const url = this.genUrl(query, template); return await this.httpRequestService.getJson<IWebFinger>(url, 'application/jrd+json, application/json'); @@ -89,7 +89,7 @@ export class WebfingerService { } @bindThis - private async fetchHostMeta(url: string): Promise<string | null> { + private async fetchWebFingerTemplateFromHostMeta(url: string): Promise<string | null> { try { const res = await this.httpRequestService.getHtml(url, 'application/xrd+xml'); const options = { |