Skip to content

Commit

Permalink
Fix an issue with avatars not loading in suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Jul 21, 2023
1 parent b22dc61 commit 49eaecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WordPress/Classes/Utility/WPAvatarSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ - (WPAvatarSourceType)parseURL:(NSURL *)url forAvatarHash:(NSString **)avatarHas
if ([components count] > 2) {
NSString *type = components[1];
NSString *hash = components[2];
if ([hash length] == 32) {
if ([hash length] == 32 || [hash length] == 64) {
// Looks like a valid hash
if ([type isEqualToString:@"avatar"]) {
if (avatarHash) *avatarHash = hash;
Expand Down

0 comments on commit 49eaecc

Please sign in to comment.