FIXED BUG that created error when trying to grab followers/following of own private profile #6344
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Checklist:
black -t py34