1
0
Fork 0
forked from fedi/mastodon

Fix performance of server-side filtering (#17575)

Fixes #17567
This commit is contained in:
Claire 2022-02-16 14:28:45 +01:00 committed by GitHub
parent 793da08995
commit 73fce8d311
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = [