mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-24 00:50:35 +00:00
Fixes regex group
This commit is contained in:
parent
e8d1c04712
commit
00c6b7e6e0
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ def is_blocked_user_agent(request):
|
|||
url = re.search(r"https?://{:s}/?".format(regex.domain), user_agent)
|
||||
if not url:
|
||||
return False
|
||||
url = url.groups()
|
||||
url = url.group()
|
||||
return models.FederatedServer.is_blocked(url)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue