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 type mismatch when checking for gravatar #8033

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

Oldiesmann
Copy link
Contributor

Description

The various parts of code checking for gravatar expect $data['avatar'] to be a string, but it might be a Url object instead. This casts it to a string before we start working with it. The code that expects it to be a Url object will convert it (back) to one if needed.

@jdarwood007
Copy link
Member

Avatars have a lot of problems, but I haven't dug into it since I had strict typing PR going on. See #8023
Will merge this for now, we can continue and get it fixed later. This may even fix things since lots of the problems revolve around the differences in URL object and strings.

@jdarwood007 jdarwood007 merged commit 81f0cf4 into SimpleMachines:release-3.0 Jan 22, 2024
3 checks passed
@Oldiesmann Oldiesmann deleted the fix_gravatar branch January 22, 2024 11:23
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.

3 participants