Properly remove profile images
This commit is contained in:
parent
f051590f14
commit
67f39ed54f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user