aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/core/users/user-local-storage.service.ts2
-rw-r--r--client/src/standalone/videos/embed.ts2
2 files changed, 2 insertions, 2 deletions
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 {
101 const htmlConfig = this.server.getHTMLConfig() 101 const htmlConfig = this.server.getHTMLConfig()
102 102
103 const defaultNSFWPolicy = htmlConfig.instance.defaultNSFWPolicy 103 const defaultNSFWPolicy = htmlConfig.instance.defaultNSFWPolicy
104 const defaultP2PEnabled = htmlConfig.defaults.p2p.enabled 104 const defaultP2PEnabled = htmlConfig.defaults.p2p.webapp.enabled
105 105
106 return { 106 return {
107 nsfwPolicy: this.localStorageService.getItem<NSFWPolicyType>(UserLocalStorageKeys.NSFW_POLICY) || defaultNSFWPolicy, 107 nsfwPolicy: this.localStorageService.getItem<NSFWPolicyType>(UserLocalStorageKeys.NSFW_POLICY) || defaultNSFWPolicy,
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index 94f1096b7..c04f94d20 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -793,7 +793,7 @@ export class PeerTubeEmbed {
793 private isP2PEnabled (video: Video) { 793 private isP2PEnabled (video: Video) {
794 const userP2PEnabled = getBoolOrDefault( 794 const userP2PEnabled = getBoolOrDefault(
795 peertubeLocalStorage.getItem(UserLocalStorageKeys.P2P_ENABLED), 795 peertubeLocalStorage.getItem(UserLocalStorageKeys.P2P_ENABLED),
796 this.config.defaults.p2p.enabled 796 this.config.defaults.p2p.embed.enabled
797 ) 797 )
798 798
799 return isP2PEnabled(video, this.config, userP2PEnabled) 799 return isP2PEnabled(video, this.config, userP2PEnabled)