mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-22 04:25:55 -04:00
Make this fix compatible with latest master
This commit is contained in:
parent
9d59df6c7e
commit
31bbb20324
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user