Explorar o código

Properly remove profile images

Patrick Barron %!s(int64=4) %!d(string=hai) anos
pai
achega
67f39ed54f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Jellyfin.Server.Implementations/Users/UserManager.cs

+ 1 - 0
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)