Explorar el Código

Properly remove profile images

Patrick Barron hace 4 años
padre
commit
67f39ed54f
Se han modificado 1 ficheros con 1 adiciones y 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)