diff options
author | Florent <florent.git@zeteo.me> | 2022-11-23 15:50:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-23 15:50:34 +0100 |
commit | fbad149ff2da2bb0b2fd33b2c8bc7e398f5a12b5 (patch) | |
tree | d445bf4b0bdc6033c5c17c518910010f737ad79c /server/lib/search.ts | |
parent | 77239b425a8e00822a53c9907415832a473c3eb6 (diff) | |
download | PeerTube-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/search.ts')
-rw-r--r-- | server/lib/search.ts | 1 |
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 |