From b65de1be4dcf626c552be613d531d3f6e23c6085 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Dec 2021 09:38:27 +0100 Subject: Use different p2p policy for embeds and webapp --- client/src/app/core/users/user-local-storage.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/core') diff --git a/client/src/app/core/users/user-local-storage.service.ts b/client/src/app/core/users/user-local-storage.service.ts index 85da46e0d..d15bf735b 100644 --- a/client/src/app/core/users/user-local-storage.service.ts +++ b/client/src/app/core/users/user-local-storage.service.ts @@ -101,7 +101,7 @@ export class UserLocalStorageService { const htmlConfig = this.server.getHTMLConfig() const defaultNSFWPolicy = htmlConfig.instance.defaultNSFWPolicy - const defaultP2PEnabled = htmlConfig.defaults.p2p.enabled + const defaultP2PEnabled = htmlConfig.defaults.p2p.webapp.enabled return { nsfwPolicy: this.localStorageService.getItem(UserLocalStorageKeys.NSFW_POLICY) || defaultNSFWPolicy, -- cgit v1.2.3