mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-22 04:25:55 -04:00
Added 'whois' API method to retrieve account by ID
More reliable and faster than retrieving by account name tbd: is "whois" the right name for this method?
This commit is contained in:
parent
4336871e9f
commit
5ae6db8689
@ -357,6 +357,10 @@ def followed_tags(app, user):
|
||||
return _get_response_list(app, user, path)
|
||||
|
||||
|
||||
def whois(app, user, account):
|
||||
return http.get(app, user, f'/api/v1/accounts/{account}').json()
|
||||
|
||||
|
||||
def mute(app, user, account):
|
||||
return _account_action(app, user, account, 'mute')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user