Răsfoiți Sursa

Properly remove profile images

Patrick Barron 4 ani în urmă
părinte
comite
67f39ed54f
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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();
             using var dbContext = _dbProvider.CreateContext();
             dbContext.Remove(user.ProfileImage);
             dbContext.Remove(user.ProfileImage);
             dbContext.SaveChanges();
             dbContext.SaveChanges();
+            user.ProfileImage = null;
         }
         }
 
 
         private static bool IsValidUsername(string name)
         private static bool IsValidUsername(string name)