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?
pull/308/head
Daniel Schwarz 2023-02-02 20:37:12 -05:00 zatwierdzone przez Ivan Habunek
rodzic 4336871e9f
commit 5ae6db8689
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

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