Browse Source

Properly remove profile images

Patrick Barron 4 năm trước cách đây
mục cha
commit
67f39ed54f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)