From 18d852fa00d03a0fd82d9e5c978e2172603f0159 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Tue, 25 Apr 2023 22:22:06 +0200 Subject: [PATCH] refactor: rename OwnCloudInstance to OwnCloudServer --- .../web-app-webfinger/src/discovery/types.ts | 4 ++-- .../src/discovery/webfingerDiscovery.ts | 6 +++--- packages/web-app-webfinger/src/views/Resolve.vue | 16 ++++++++-------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/web-app-webfinger/src/discovery/types.ts b/packages/web-app-webfinger/src/discovery/types.ts index 5e51580200a..25fd049f55c 100644 --- a/packages/web-app-webfinger/src/discovery/types.ts +++ b/packages/web-app-webfinger/src/discovery/types.ts @@ -1,5 +1,5 @@ -export interface OwnCloudInstance { +export interface OwnCloudServer { rel: string href: string - titles?: any + titles?: Record } diff --git a/packages/web-app-webfinger/src/discovery/webfingerDiscovery.ts b/packages/web-app-webfinger/src/discovery/webfingerDiscovery.ts index 7e298ebc879..d261a9cd05b 100644 --- a/packages/web-app-webfinger/src/discovery/webfingerDiscovery.ts +++ b/packages/web-app-webfinger/src/discovery/webfingerDiscovery.ts @@ -1,10 +1,10 @@ -import { OwnCloudInstance } from 'web-app-webfinger/src/discovery/types' +import { OwnCloudServer } from 'web-app-webfinger/src/discovery/types' import { ClientService } from 'web-pkg' import { urlJoin } from 'web-client/src/utils' interface OwnCloudInstancesResponse { subject: string - links: OwnCloudInstance[] + links: OwnCloudServer[] } const OWNCLOUD_REL = 'http://webfinger.owncloud/rel/server-instance' @@ -18,7 +18,7 @@ export class WebfingerDiscovery { this.clientService = clientService } - public async discoverOwnCloudInstances(): Promise { + public async discoverOwnCloudServers(): Promise { const client = this.clientService.httpAuthenticated const url = urlJoin(this.serverUrl, '.well-known', 'webfinger') + `?resource=${encodeURI(this.serverUrl)}` diff --git a/packages/web-app-webfinger/src/views/Resolve.vue b/packages/web-app-webfinger/src/views/Resolve.vue index c95df1a872e..e8757f83ab8 100644 --- a/packages/web-app-webfinger/src/views/Resolve.vue +++ b/packages/web-app-webfinger/src/views/Resolve.vue @@ -24,7 +24,7 @@