Browse Source

Exclude forums.terraria.org from url transforms

This forum uses the same invalid url scheme as the Paradox forums, so
needs to be excluded as well.
merge-requests/106/head
Deimos 5 years ago
parent
commit
d5453cf286
  1. 4
      tildes/tildes/lib/url_transform.py

4
tildes/tildes/lib/url_transform.py

@ -47,8 +47,8 @@ def _is_exempt_from_transformations(parsed_url: ParseResult) -> bool:
if not parsed_url.hostname:
return True
# Paradox forums use an invalid url scheme that will break if processed
if parsed_url.hostname == "forum.paradoxplaza.com":
# Paradox and Terraria forums use an invalid url scheme that will break if processed
if parsed_url.hostname in ("forum.paradoxplaza.com", "forums.terraria.org"):
return True
return False

Loading…
Cancel
Save