1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Fix DISABLE_LOCAL_SEARCH blocking request to local search API (#5411)

This commit is contained in:
Florent 2022-11-23 15:50:34 +01:00 committed by GitHub
parent 77239b425a
commit fbad149ff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 31 deletions

View file

@ -20,7 +20,7 @@ function isSearchTargetValid (value: SearchTargetType) {
const searchIndexConfig = CONFIG.SEARCH.SEARCH_INDEX
if (value === 'local' && (!searchIndexConfig.ENABLED || !searchIndexConfig.DISABLE_LOCAL_SEARCH)) return true
if (value === 'local') return true
if (value === 'search-index' && searchIndexConfig.ENABLED) return true