mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Fix DISABLE_LOCAL_SEARCH blocking request to local search API (#5411)
This commit is contained in:
parent
77239b425a
commit
fbad149ff2
5 changed files with 3 additions and 31 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue