Fix: typo that can prevent settings chat-only-locals to work.

This commit is contained in:
John Livingston 2021-04-07 18:17:17 +02:00
parent 8f79f813c7
commit ac37d8a882
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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
}