Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
36 stars 1 forks source link

Do not use `Profile.avatarUrl` in profile views #303

Closed pinarol closed 1 month ago

pinarol commented 2 months ago

/v3/profiles/... response,Profile.avatarUrl always gives the primary email's avatar even if you make the query with a secondary email. From the backend perspective secondary emails don’t have profiles, they just redirect to primary email’s profile. This causes us to show wrong avatar in the profile view.

So let's calculate the avatar identifier based on the email rather than taking from the profile response.

pinarol commented 1 month ago

Closed with https://github.com/Automattic/Gravatar-SDK-iOS/pull/304