aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
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/lib
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/lib')
-rw-r--r--server/lib/search.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/server/lib/search.ts b/server/lib/search.ts
index 2f4c5eed9..b3363fbec 100644
--- a/server/lib/search.ts
+++ b/server/lib/search.ts
@@ -12,7 +12,6 @@ function isSearchIndexSearch (query: SearchTargetQuery) {
12 12
13 if (searchIndexConfig.ENABLED !== true) return false 13 if (searchIndexConfig.ENABLED !== true) return false
14 14
15 if (searchIndexConfig.DISABLE_LOCAL_SEARCH) return true
16 if (searchIndexConfig.IS_DEFAULT_SEARCH && !query.searchTarget) return true 15 if (searchIndexConfig.IS_DEFAULT_SEARCH && !query.searchTarget) return true
17 16
18 return false 17 return false