From 08571dece14eccfb8fec3ce92a80a09367cd20be Mon Sep 17 00:00:00 2001 From: official-techsupport Date: Wed, 1 Feb 2023 23:20:08 +0000 Subject: [PATCH] add 'blog' tld (#108) https://scottaaronson.blog/ is a thing, for example. We must support the thing. Add .blog as an approved TLD. Co-authored-by: official-techsupport Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/108 Co-authored-by: official-techsupport Co-committed-by: official-techsupport --- files/helpers/sanitize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 2dd758fb7..68fbfb6df 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -38,7 +38,7 @@ TLDS = ( # Original gTLDs and ccTLDs 'vu','wf','ws','xn','xxx','ye','yt','yu','za','zm','zw', # New gTLDs 'app','cleaning','club','dev','farm','florist','fun','gay','lgbt','life','lol', - 'moe','mom','monster','new','news','online','pics','press','pub','site', + 'moe','mom','monster','new','news','online','pics','press','pub','site','blog', 'vip','win','world','wtf','xyz','video','host','art','media','wiki','tech','cooking' ) @@ -437,7 +437,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys return error, 403 else: abort(403, error) - + banned_domains = g.db.query(BannedDomain).all() for x in banned_domains: for y in domain_list: