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

fix how we pull in pfps when creating oauth users #791

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Conversation

zkat
Copy link
Contributor

@zkat zkat commented Mar 19, 2024

When the oauth service did not include a file extension in its url, which is a totally reasonable thing to do, we would just... fail to create the user altogether.

This PR does two things:

  1. Makes sure user creation happens regardless of pfp processing.
  2. Uses Image to load the raw binary data for the oauth pfp and always write it out as jpg.

@zkat zkat added the bug Something isn't working label Mar 19, 2024
@zkat zkat merged commit 56bcc94 into main Mar 19, 2024
5 checks passed
@zkat zkat deleted the zkat/fix-oauth-pfp-bug branch March 19, 2024 05:15
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 45.247% (+0.01%) from 45.234%
when pulling 270c623 on zkat/fix-oauth-pfp-bug
into 4efda46 on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants