Remove embedded profile image data

This commit is contained in:
Loporrit
2025-07-21 17:44:20 +00:00
parent 73d9124d46
commit 86aa5639f3
4 changed files with 16 additions and 14 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
namespace MareSynchronos.Services;
public record MareProfileData(bool IsFlagged, bool IsNSFW, string Base64ProfilePicture, string Base64SupporterPicture, string Description)
public record MareProfileData(bool IsFlagged, bool IsNSFW, string Base64ProfilePicture, string Description)
{
public Lazy<byte[]> ImageData { get; } = new Lazy<byte[]>(Convert.FromBase64String(Base64ProfilePicture));
public Lazy<byte[]> SupporterImageData { get; } = new Lazy<byte[]>(string.IsNullOrEmpty(Base64SupporterPicture) ? [] : Convert.FromBase64String(Base64SupporterPicture));
}
File diff suppressed because one or more lines are too long