From ac37d8a88240880b4f1c1bc7a1a9b939c5f04b72 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Wed, 7 Apr 2021 18:17:17 +0200 Subject: [PATCH] Fix: typo that can prevent settings chat-only-locals to work. --- CHANGELOG.md | 4 ++++ client/videowatch-client-plugin.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf30b555..cb70cf16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## ??? + +* Fix: typo that can prevent settings chat-only-locals to work + ## v1.0.7 * New tutorial to setup [Prosody on the Peertube server](documentation/tutorials/prosody.md) diff --git a/client/videowatch-client-plugin.js b/client/videowatch-client-plugin.js index d58611bc..f68c139f 100644 --- a/client/videowatch-client-plugin.js +++ b/client/videowatch-client-plugin.js @@ -210,7 +210,7 @@ function register ({ registerHook, peertubeHelpers }) { logger.error('Can\'t find the video ' + uuid + ' in the videoCache') return } - if (settings['chat-only-locals' && !video.isLocal]) { + if (settings['chat-only-locals'] && !video.isLocal) { logger.log('This video is not local, and we dont want chats on non local videos.') return }