Skip to content

Commit

Permalink
Merge pull request #319 from leoncowle/lists.py-list_accounts-fix
Browse files Browse the repository at this point in the history
Add missing "params" arg to lists.py:list_accounts() __api_request call
  • Loading branch information
halcy committed Apr 23, 2023
2 parents 0178569 + 4bd8afa commit c6d9361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mastodon/lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def list_accounts(self, id, max_id=None, min_id=None, since_id=None, limit=None)
since_id = self.__unpack_id(since_id, dateconv=True)

params = self.__generate_params(locals(), ['id'])
return self.__api_request('GET', f'/api/v1/lists/{id}/accounts')
return self.__api_request('GET', f'/api/v1/lists/{id}/accounts', params)

###
# Writing data: Lists
Expand Down Expand Up @@ -107,4 +107,4 @@ def list_accounts_delete(self, id, account_ids):
account_ids = [self.__unpack_id(x) for x in account_ids]

params = self.__generate_params(locals(), ['id'])
self.__api_request('DELETE', f'/api/v1/lists/{id}/accounts', params)
self.__api_request('DELETE', f'/api/v1/lists/{id}/accounts', params)

0 comments on commit c6d9361

Please sign in to comment.