Properly remove profile images

pull/4377/head
Patrick Barron 4 years ago
parent f051590f14
commit 67f39ed54f

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

Loading…
Cancel
Save