code cleanup
This commit is contained in:
parent
f5d9a204eb
commit
9a3ec4362b
2 changed files with 7 additions and 8 deletions
|
@ -100,7 +100,7 @@ def ostatus_follow_request(request):
|
|||
"""prepare an outgoing remote follow request"""
|
||||
uri = urllib.parse.unquote(request.GET.get("acct"))
|
||||
username_parts = re.search(
|
||||
"(?:^http(?:s?):\/\/)([\w\-\.]*)(?:.)*(?:(?:\/)([\w]*))", uri
|
||||
r"(?:^http(?:s?):\/\/)([\w\-\.]*)(?:.)*(?:(?:\/)([\w]*))", uri
|
||||
)
|
||||
account = f"{username_parts[2]}@{username_parts[1]}"
|
||||
user = handle_remote_webfinger(account)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue