Skip to content

Commit

Permalink
fix hex string
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Sep 24, 2023
1 parent 59546ca commit 0a7bfa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API/Utils/GravatarUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static Uri GetImageUrl(string email)
{
Span<byte> tempSpan = stackalloc byte[32];
SHA256.HashData(Encoding.UTF8.GetBytes(email), tempSpan);
return new Uri($"https://www.gravatar.com/avatar/{Convert.ToHexString(tempSpan)}?d=https%3A%2F%2Fsea.zlucplayz.com%2Ff%2F897bd3f9b09945cf8c4f%2F%3Fraw%3D1");
return new Uri($"https://www.gravatar.com/avatar/{Convert.ToHexString(tempSpan).ToLowerInvariant()}?d=https%3A%2F%2Fstatic.wikia.nocookie.net%2Frickandmorty%2Fimages%2Fe%2Fee%2FMorty501.png");
}

}

0 comments on commit 0a7bfa1

Please sign in to comment.