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
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue