From 0a7bfa1f1b11c6fbfd08a4f6003df9250abe61f8 Mon Sep 17 00:00:00 2001 From: LucHeart Date: Sun, 24 Sep 2023 17:06:09 +0200 Subject: [PATCH] fix hex string --- API/Utils/GravatarUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/Utils/GravatarUtils.cs b/API/Utils/GravatarUtils.cs index 30aadeb3..5268e24e 100644 --- a/API/Utils/GravatarUtils.cs +++ b/API/Utils/GravatarUtils.cs @@ -9,7 +9,7 @@ public static Uri GetImageUrl(string email) { Span 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"); } } \ No newline at end of file