aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-08-26 09:02:03 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-08-26 09:02:03 -0500
commitc6b15d4b3c662461da0661c13be7f37440487476 (patch)
treeaf596d55468c082118e05a57c8c82b18c8d7b185 /src
parentbb5f2cdfb27b3e1773d622ee92b05aa6b8f1950b (diff)
downloadslskd-c6b15d4b3c662461da0661c13be7f37440487476.tar.gz
remove search response filtering
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application/Search/SearchService.cs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/slskd/Application/Search/SearchService.cs b/src/slskd/Application/Search/SearchService.cs
index 87ac5e22..4841fed0 100644
--- a/src/slskd/Application/Search/SearchService.cs
+++ b/src/slskd/Application/Search/SearchService.cs
@@ -90,15 +90,10 @@ namespace slskd.Search
StartedAt = DateTime.UtcNow,
};
- var filters = OptionsMonitor.CurrentValue.Filters.File
- .Select(filter => new Regex(filter, RegexOptions.Compiled));
-
options ??= new SearchOptions();
options = options.WithActions(
stateChanged: (args) => UpdateSearchState(search, args.Search),
responseReceived: (args) => UpdateSearchState(search, args.Search));
- options = options.WithFilters(
- fileFilter: (file) => !filters.Any(filter => filter.IsMatch(file.Filename)));
try
{