From 3a9446f9ae444e364ae076eab0e273c35a5af691 Mon Sep 17 00:00:00 2001 From: cake Date: Sun, 26 Oct 2025 18:57:22 +0100 Subject: [PATCH] Fixed update on image --- .../LightlessSyncServer/Utils/Extensions.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LightlessSyncServer/LightlessSyncServer/Utils/Extensions.cs b/LightlessSyncServer/LightlessSyncServer/Utils/Extensions.cs index e0d09d9..979c8ac 100644 --- a/LightlessSyncServer/LightlessSyncServer/Utils/Extensions.cs +++ b/LightlessSyncServer/LightlessSyncServer/Utils/Extensions.cs @@ -17,8 +17,8 @@ public static class Extensions if (profile == null || dto == null) return; - profile.Base64GroupProfileImage = string.IsNullOrWhiteSpace(base64PictureString) ? null : base64PictureString; - profile.Base64GroupBannerImage = string.IsNullOrWhiteSpace(base64BannerString) ? null : base64BannerString; + if (base64PictureString != null) profile.Base64GroupProfileImage = base64PictureString; + if (base64BannerString != null) profile.Base64GroupBannerImage = base64BannerString; if (dto.Tags != null) profile.Tags = dto.Tags; if (dto.Description != null) profile.Description = dto.Description; if (dto.IsNsfw.HasValue) profile.IsNSFW = dto.IsNsfw.Value; @@ -31,8 +31,8 @@ public static class Extensions if (profile == null || dto == null) return; - profile.Base64ProfileImage = string.IsNullOrWhiteSpace(base64PictureString) ? null : base64PictureString; - profile.Base64BannerImage = string.IsNullOrWhiteSpace(base64BannerString) ? null : base64BannerString; + if (base64PictureString != null) profile.Base64ProfileImage = base64PictureString; + if (base64BannerString != null) profile.Base64BannerImage = base64BannerString; if (dto.Tags != null) profile.Tags = dto.Tags; if (dto.Description != null) profile.UserDescription = dto.Description; if (dto.IsNSFW.HasValue) profile.IsNSFW = dto.IsNSFW.Value;