Ruff fix
This commit is contained in:
parent
c7a5b3eae1
commit
4084eb8305
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user