Properly remove profile images

This commit is contained in:
Patrick Barron 2020-10-27 12:28:37 -04:00
parent f051590f14
commit 67f39ed54f

View File

@ -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)