1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Fix for compatibility with more recent versions of toot

This commit is contained in:
Daniel Schwarz 2024-03-05 19:58:54 -05:00
parent a5cd9d343c
commit d21b2920cb

View File

@ -27,11 +27,6 @@ def _tag_action(app, user, tag_name, action):
def _status_toggle_action(app, user, status_id, action, data=None):
url = '/api/v1/statuses/{}/{}'.format(status_id, action)
return http.post(app, user, url, data=data).json()
def _status_toggle_action(app, user, status_id, action):
url = '/api/v1/statuses/{}/{}'.format(status_id, action)
try:
response = http.post(app, user, url).json()
@ -49,7 +44,7 @@ def _status_toggle_action(app, user, status_id, action):
finally:
return response
def create_app(domain, scheme='https'):
url = f"{scheme}://{domain}/api/v1/apps"