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:
Daniel Schwarz 2023-02-02 20:37:12 -05:00 committed by Ivan Habunek
parent 4336871e9f
commit 5ae6db8689
1 changed files with 4 additions and 0 deletions

View File

@ -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')