]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/search.ts
Merge remote-tracking branch 'weblate/develop' into develop
[github/Chocobozzz/PeerTube.git] / server / lib / search.ts
index b643a4055e7227d0a72cdb65d395d20ad6b62a9d..b3363fbec4a7756c170c634b49df36a51f27b62b 100644 (file)
@@ -1,4 +1,4 @@
-import * as express from 'express'
+import express from 'express'
 import { CONFIG } from '@server/initializers/config'
 import { AccountBlocklistModel } from '@server/models/account/account-blocklist'
 import { getServerActor } from '@server/models/application/application'
@@ -12,7 +12,6 @@ function isSearchIndexSearch (query: SearchTargetQuery) {
 
   if (searchIndexConfig.ENABLED !== true) return false
 
-  if (searchIndexConfig.DISABLE_LOCAL_SEARCH) return true
   if (searchIndexConfig.IS_DEFAULT_SEARCH && !query.searchTarget) return true
 
   return false