1
0
This commit is contained in:
Jon Michael Aanes 2024-07-08 18:55:45 +02:00
parent c7a5b3eae1
commit 4084eb8305
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -439,7 +439,7 @@ def determine_social_from_url_internally(
# Regexes # Regexes
for social_site_url_regex, social_site_id in REGEXES: for social_site_url_regex, social_site_id in REGEXES:
if m := re.fullmatch(social_site_url_regex, url, re.I): if m := re.fullmatch(social_site_url_regex, url, re.IGNORECASE):
groups = m.groups() groups = m.groups()
username_or_id = groups[0] if len(groups) > 0 else None username_or_id = groups[0] if len(groups) > 0 else None
if username_or_id in DISALLOWED_IDENTIFIERS: if username_or_id in DISALLOWED_IDENTIFIERS: