Skip to content

Commit

Permalink
Fix current_user 405 error (ping#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
YusufBerki authored Mar 5, 2022
1 parent 0fda036 commit 45cdb5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions instagram_private_api/endpoints/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ def login(self):

def current_user(self):
"""Get current user info"""
params = self.authenticated_params
res = self._call_api('accounts/current_user/', params=params, query={'edit': 'true'})
res = self._call_api('accounts/current_user/', query={'edit': 'true'})
if self.auto_patch:
ClientCompatPatch.user(res['user'], drop_incompat_keys=self.drop_incompat_keys)
return res
Expand Down

0 comments on commit 45cdb5b

Please sign in to comment.