diff --git a/galaxy/api/serializers/users.py b/galaxy/api/serializers/users.py index cd0ae3d0e..01c2046da 100644 --- a/galaxy/api/serializers/users.py +++ b/galaxy/api/serializers/users.py @@ -97,7 +97,9 @@ def get_summary_fields(self, obj): return d def get_github_id(self, obj): - social_user = SocialAccount.objects.filter(user_id=obj.id).first() + social_user = SocialAccount.objects.filter( + user_id=obj.id, provider='github' + ).first() if social_user is None: return None return social_user.extra_data.get('id')