Limit email domain block variant query to unique values (#38196)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2026-03-16 08:11:32 +00:00
1 parent e7cb3af15f
commit a9c248f14f
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ class EmailDomainBlock < ApplicationRecord
segments = uri.normalized_host.split('.')
segments.map.with_index { |_, i| segments[i..].join('.') }
end
end.uniq
end
def extract_uris(domain_or_domains)