Browse Source

fixes #263 - User profile images lost

Luke Pulverenti 12 năm trước cách đây
mục cha
commit
b85ea26b7a

+ 1 - 1
MediaBrowser.Api/Images/ImageService.cs

@@ -754,7 +754,7 @@ namespace MediaBrowser.Api.Images
                 }
                 }
 
 
                 // Don't save locally if there's no parent (special feature, trailer, etc)
                 // Don't save locally if there's no parent (special feature, trailer, etc)
-                var saveLocally = !(entity is Audio) && entity.Parent != null && !string.IsNullOrEmpty(entity.MetaLocation);
+                var saveLocally = (!(entity is Audio) && entity.Parent != null && !string.IsNullOrEmpty(entity.MetaLocation)) || entity is User;
 
 
                 if (imageType != ImageType.Primary)
                 if (imageType != ImageType.Primary)
                 {
                 {