diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-03-14 19:08:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-14 19:08:50 +0100 |
| commit | f2125da9f942e3972ce932bb20f6e83c2ece1e23 (patch) | |
| tree | 328459396c783e8c61214c8d960d8ba07b5773f6 /Emby.Drawing/ImageProcessor.cs | |
| parent | 109f24514fac52c8f138c4913d7ef614ff1973a1 (diff) | |
| parent | e5380c653b0584a3b5d61da1a9b005d6155694cb (diff) | |
Merge pull request #5395 from barronpm/ef-cleanup
Diffstat (limited to 'Emby.Drawing/ImageProcessor.cs')
| -rw-r--r-- | Emby.Drawing/ImageProcessor.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs index 8a2301d2d..aa8a3d212 100644 --- a/Emby.Drawing/ImageProcessor.cs +++ b/Emby.Drawing/ImageProcessor.cs @@ -352,8 +352,13 @@ namespace Emby.Drawing } /// <inheritdoc /> - public string GetImageCacheTag(User user) + public string? GetImageCacheTag(User user) { + if (user.ProfileImage == null) + { + return null; + } + return (user.ProfileImage.Path + user.ProfileImage.LastModified.Ticks).GetMD5() .ToString("N", CultureInfo.InvariantCulture); } |
