Skip to content

The Free Software Media System - Server Backend & API

Properly remove profile images

Patrick Barron67f39ed54fe4
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs
index efc3f439d8..b39333b5cd 100644
--- a/Jellyfin.Server.Implementations/Users/UserManager.cs
+++ b/Jellyfin.Server.Implementations/Users/UserManager.cs
@@ -724,6 +724,7 @@ namespace Jellyfin.Server.Implementations.Users
using var dbContext = _dbProvider.CreateContext();
dbContext.Remove(user.ProfileImage);
dbContext.SaveChanges();
+ user.ProfileImage = null;
}
private static bool IsValidUsername(string name)