Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIXED BUG that created error when trying to grab followers/following of own private profile #6344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucianolacurcia
Copy link

Added OWNER to range of following_status of get_followers and get_followings so it is possible to grab followers and followings from own private profile

Description

While trying to grab followers or followings from my own private profile I was getting the error:
" This user is private and we are not following"

The problem is that in get_followers/get_following when checking if the user is private and we are not following him, the return of get_following_status in this case is "OWNER" which is not considered in the range of the if statement that decides if we are able to fetch the data or not. So I just added it and it works now.

Fixes # 6130

How Has This Been Tested?

I just tested it on my account and now it does what is expected.

  • Test

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have checked my code and corrected any misspellings
  • I have performed a self-review of my own code
  • My code follows the style guidelines of this project, black -t py34
  • My changes generate no new warnings

…lowings so it is possible to grab followers and followings from own private profile
@lucianolacurcia lucianolacurcia mentioned this pull request Dec 14, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants