From: John Runyon Date: Wed, 4 Oct 2023 07:23:23 +0000 (-0600) Subject: urls - blacklist my gitweb, lol X-Git-Url: https://jfr.im/git/erebus.git/commitdiff_plain/6634a02ce5f765a5f9e5e0ef6ff358a54ca94319 urls - blacklist my gitweb, lol --- diff --git a/modules/urls.py b/modules/urls.py index 4067077..859f9ac 100644 --- a/modules/urls.py +++ b/modules/urls.py @@ -322,6 +322,7 @@ url_regex = ( other_regexes = ( (lambda x: '', (re.compile(r"""https?://(?:www\.)?(?:twitter|x)\.com/""", re.I),)), # skip twitter (lambda x: '', (re.compile(r"""https?://(?:www\.)?reddit\.com/""", re.I),)), # skip new-reddit + (lambda x: '', (re.compile(r"""https?://jfr\.im/git/""", re.I),)), # skip my gitweb ) regexes = other_regexes + ( (goturl, url_regex),