about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-02-16 14:28:45 +0100
committerGitHub <noreply@github.com>2022-02-16 14:28:45 +0100
commit73fce8d31115f44d6d3f20f563c656b1595e70f8 (patch)
treec746ee4aa5441fbdf42952ef0e471530eb30c803 /app
parent793da08995d66793fed31ec1b889404e7808cbfb (diff)
Fix performance of server-side filtering (#17575)
Fixes #17567
Diffstat (limited to 'app')
-rw-r--r--app/lib/feed_manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb
index 7840afee8..ccd4d3610 100644
--- a/app/lib/feed_manager.rb
+++ b/app/lib/feed_manager.rb
@@ -441,7 +441,7 @@ class FeedManager
 
     return false if active_filters.empty?
 
-    combined_regex = active_filters.reduce { |memo, obj| Regexp.union(memo, obj) }
+    combined_regex = Regexp.union(active_filters)
     status         = status.reblog if status.reblog?
 
     combined_text = [