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

When following a user on Twitter, use their ID instead of their handle #37

Closed
ykdojo opened this issue Dec 1, 2018 · 3 comments
Closed
Assignees
Labels

Comments

@ykdojo
Copy link
Owner

ykdojo commented Dec 1, 2018

We need to do this just in case the user changes their user handle on Twitter.

@ykdojo ykdojo self-assigned this Dec 4, 2018
@ykdojo ykdojo added the twitter label Dec 4, 2018
@ykdojo
Copy link
Owner Author

ykdojo commented Dec 4, 2018

I'm going to work on this now.

@ykdojo
Copy link
Owner Author

ykdojo commented Dec 4, 2018

NOTES: in my Django console, I did the following.

from users.models import CustomUser
from allauth.socialaccount.models import SocialAccount

u = CustomUser.objects.filter(username = 'ykdojo')[0]
sa = SocialAccount.objects.filter(user = u)[0]
sa.uid # this gives me my Twitter ID, I think. I should be able to use this ID to follow this account instead of using the Twitter handle, which the user might change anytime.

@ykdojo
Copy link
Owner Author

ykdojo commented Dec 5, 2018

done: 2f58d0d

@ykdojo ykdojo closed this as completed Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant