diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-02-16 14:28:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 14:28:45 +0100 |
commit | 73fce8d31115f44d6d3f20f563c656b1595e70f8 (patch) | |
tree | c746ee4aa5441fbdf42952ef0e471530eb30c803 | |
parent | 793da08995d66793fed31ec1b889404e7808cbfb (diff) |
Fix performance of server-side filtering (#17575)
Fixes #17567
-rw-r--r-- | app/lib/feed_manager.rb | 2 |
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 = [ |