From 23032b9417eca6b080f5cd6f744925f6b4af9c53 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 8 Dec 2024 15:54:43 +0100 Subject: [PATCH] Desktop, Cli, Mobile: Reactivate pCloud synchronisation --- packages/lib/utils/webDAVUtils.test.ts | 4 ++-- packages/lib/utils/webDAVUtils.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/lib/utils/webDAVUtils.test.ts b/packages/lib/utils/webDAVUtils.test.ts index 5f0f480ce..e3b7c6347 100644 --- a/packages/lib/utils/webDAVUtils.test.ts +++ b/packages/lib/utils/webDAVUtils.test.ts @@ -20,9 +20,9 @@ describe('checkProviderIsSupported', () => { }); it('should throw an error with the name of the provider when an unsupported provider path is provided', () => { - expect(() => checkProviderIsSupported('https://pcloud.com')).toThrowError('The WebDAV implementation of pcloud is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.'); + expect(() => checkProviderIsSupported('https://jianguoyun.com')).toThrowError('The WebDAV implementation of jianguoyun is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.'); - expect(() => checkProviderIsSupported('https://api.pcloud.com')).toThrowError('The WebDAV implementation of pcloud is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.'); + expect(() => checkProviderIsSupported('https://api.jianguoyun.com')).toThrowError('The WebDAV implementation of jianguoyun is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.'); // expect(() => checkProviderIsSupported('https://api-pcloud-test.com')).toThrowError('The WebDAV implementation of pcloud is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.'); }); diff --git a/packages/lib/utils/webDAVUtils.ts b/packages/lib/utils/webDAVUtils.ts index 55f84f574..f398fc59d 100644 --- a/packages/lib/utils/webDAVUtils.ts +++ b/packages/lib/utils/webDAVUtils.ts @@ -22,7 +22,7 @@ const pathContainsUnsupportedProvider = (path: string, unsupportedProviders: str export const checkProviderIsSupported = (path: string): void => { if (Setting.value('sync.allowUnsupportedProviders') === 1) return; - const unsupportedProviders = ['pcloud', 'jianguoyun']; + const unsupportedProviders = ['jianguoyun']; for (const p of unsupportedProviders) { if (pathContainsUnsupportedProvider(path, unsupportedProviders)) { throw new Error(_('The WebDAV implementation of %s is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.', p));