Sfoglia il codice sorgente

Properly remove profile images

Patrick Barron 4 anni fa
parent
commit
67f39ed54f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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)