forked from rDrama/rDrama
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 <official_techsupport@protonmail.com> Reviewed-on: rDrama/rDrama#108 Co-authored-by: official-techsupport <official-techsupport@noreply.fsdfsd.net> Co-committed-by: official-techsupport <official-techsupport@noreply.fsdfsd.net>master
parent
2946006c9a
commit
08571dece1
|
@ -38,7 +38,7 @@ TLDS = ( # Original gTLDs and ccTLDs
|
||||||
'vu','wf','ws','xn','xxx','ye','yt','yu','za','zm','zw',
|
'vu','wf','ws','xn','xxx','ye','yt','yu','za','zm','zw',
|
||||||
# New gTLDs
|
# New gTLDs
|
||||||
'app','cleaning','club','dev','farm','florist','fun','gay','lgbt','life','lol',
|
'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'
|
'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
|
return error, 403
|
||||||
else:
|
else:
|
||||||
abort(403, error)
|
abort(403, error)
|
||||||
|
|
||||||
banned_domains = g.db.query(BannedDomain).all()
|
banned_domains = g.db.query(BannedDomain).all()
|
||||||
for x in banned_domains:
|
for x in banned_domains:
|
||||||
for y in domain_list:
|
for y in domain_list:
|
||||||
|
|
Loading…
Reference in New Issue