1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-06-09 06:10:43 +00:00

Fix formatting

This commit is contained in:
Ivan Habunek 2022-11-22 21:27:21 +01:00
parent 6833607984
commit e01bdaad93
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -300,6 +300,7 @@ def follow(app, user, account):
def unfollow(app, user, account):
return _account_action(app, user, account, 'unfollow')
def _get_account_list(app, user, path):
accounts = []
while path:
@ -308,10 +309,12 @@ def _get_account_list(app, user, path):
path = _get_next_path(response.headers)
return accounts
def following(app, user, account):
path = '/api/v1/accounts/{}/{}'.format(account, 'following')
return _get_account_list(app, user, path)
def followers(app, user, account):
path = '/api/v1/accounts/{}/{}'.format(account, 'followers')
return _get_account_list(app, user, path)