Make this fix compatible with latest master

This commit is contained in:
Daniel Schwarz 2024-03-05 20:07:28 -05:00
parent 9d59df6c7e
commit 31bbb20324
1 changed files with 1 additions and 5 deletions

View File

@ -8,7 +8,7 @@ from typing import BinaryIO, List, Optional
from urllib.parse import urlparse, urlencode, quote
from toot import App, User, http, CLIENT_NAME, CLIENT_WEBSITE
from toot.exceptions import AuthenticationError, ApiError, ConsoleError
from toot.exceptions import ApiError, ConsoleError
from toot.utils import drop_empty_values, str_bool, str_bool_nullable
@ -76,10 +76,6 @@ def _status_toggle_action(app, user, status_id, action, data=None):
def create_app(domain, scheme='https'):
url = f"{scheme}://{domain}/api/v1/apps"
#def create_app(base_url):
# url = f"{base_url}/api/v1/apps"
json = {
'client_name': CLIENT_NAME,
'redirect_uris': 'urn:ietf:wg:oauth:2.0:oob',