aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-09-18 13:09:00 -0400
committerGitHub <noreply@github.com>2017-09-18 13:09:00 -0400
commitb09e0a6e29ef32e91561451a3c5a4b7b436882e9 (patch)
treeb2769394f51e63eae055ad1d1de3b6fe152a1a2d /Emby.Server.Implementations/Dto
parent64b04216f11799c114e57349e83ce78ef2795a02 (diff)
parent983c249d397a356b5fa770a2e2fe5df87b11f4d4 (diff)
Merge pull request #2889 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Dto')
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index b57662e311..1854829a24 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -1487,7 +1487,7 @@ namespace Emby.Server.Implementations.Dto
}
}
- var parent = currentItem.DisplayParent ?? currentItem.GetParent();
+ var parent = currentItem.DisplayParent ?? (currentItem.IsOwnedItem ? currentItem.GetOwner() : currentItem.GetParent());
if (parent == null && !(originalItem is UserRootFolder) && !(originalItem is UserView) && !(originalItem is AggregateFolder) && !(originalItem is ICollectionFolder) && !(originalItem is Channel))
{