Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
Datalux committed Sep 22, 2020
2 parents 1321123 + 827a003 commit 5d4b5c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Osintgram.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,8 @@ def onlogin_callback(self, api, new_settings_file):
# print('SAVED: {0!s}'.format(new_settings_file))

def check_following(self):
if self.target_id == self.api.authenticated_user_id:
return True
endpoint = 'users/{user_id!s}/full_detail_info/'.format(**{'user_id': self.target_id})
return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following']

Expand Down

0 comments on commit 5d4b5c8

Please sign in to comment.