Skip to content

Commit

Permalink
Add UK-specific excluded calculated homepage domains
Browse files Browse the repository at this point in the history
  • Loading branch information
garethrees committed Sep 29, 2023
1 parent a77308a commit 32ca854
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/model_patches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,23 @@ def late_calculator
prepend ProAccountBans::ModelMethods
end

PublicBody.excluded_calculated_home_page_domains << %w[
aol.co.uk
blueyonder.co.uk
btconnect.com
btinternet.com
btopenworld.com
hotmail.co.uk
live.co.uk
ntlworld.com
sky.com
talk21.com
talktalk.net
tiscali.co.uk
virginmedia.com
yahoo.co.uk
]

PublicBody.class_eval do
# Return the domain part of an email address, canonicalised and with common
# extra UK Government server name parts removed.
Expand Down

0 comments on commit 32ca854

Please sign in to comment.