aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
authorFlorent <florent.git@zeteo.me>2022-11-23 15:50:34 +0100
committerGitHub <noreply@github.com>2022-11-23 15:50:34 +0100
commitfbad149ff2da2bb0b2fd33b2c8bc7e398f5a12b5 (patch)
treed445bf4b0bdc6033c5c17c518910010f737ad79c /server/helpers/custom-validators
parent77239b425a8e00822a53c9907415832a473c3eb6 (diff)
downloadPeerTube-fbad149ff2da2bb0b2fd33b2c8bc7e398f5a12b5.tar.gz
PeerTube-fbad149ff2da2bb0b2fd33b2c8bc7e398f5a12b5.tar.zst
PeerTube-fbad149ff2da2bb0b2fd33b2c8bc7e398f5a12b5.zip
Fix DISABLE_LOCAL_SEARCH blocking request to local search API (#5411)
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r--server/helpers/custom-validators/search.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/search.ts b/server/helpers/custom-validators/search.ts
index a8f258838..6dba5d14e 100644
--- a/server/helpers/custom-validators/search.ts
+++ b/server/helpers/custom-validators/search.ts
@@ -20,7 +20,7 @@ function isSearchTargetValid (value: SearchTargetType) {
20 20
21 const searchIndexConfig = CONFIG.SEARCH.SEARCH_INDEX 21 const searchIndexConfig = CONFIG.SEARCH.SEARCH_INDEX
22 22
23 if (value === 'local' && (!searchIndexConfig.ENABLED || !searchIndexConfig.DISABLE_LOCAL_SEARCH)) return true 23 if (value === 'local') return true
24 24
25 if (value === 'search-index' && searchIndexConfig.ENABLED) return true 25 if (value === 'search-index' && searchIndexConfig.ENABLED) return true
26 26