aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheMelmacian <76712303+TheMelmacian@users.noreply.github.com>2026-07-13 20:01:01 +0200
committerTheMelmacian <76712303+TheMelmacian@users.noreply.github.com>2026-07-13 20:01:01 +0200
commit2a44c35224e29498c0d75fd1091e043496b04865 (patch)
tree8f0f6617504d1f96976dbd9786d9f3596df81a1c
parent7939f3b009e830e38a3f37455418011043429ee3 (diff)
Apply review suggestions
-rw-r--r--Jellyfin.Api/Controllers/FilterController.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/FilterController.cs b/Jellyfin.Api/Controllers/FilterController.cs
index 07ebe83e86..9964a2f4e4 100644
--- a/Jellyfin.Api/Controllers/FilterController.cs
+++ b/Jellyfin.Api/Controllers/FilterController.cs
@@ -180,8 +180,9 @@ public class FilterController : BaseJellyfinApiController
if ((recursive ?? true) || parentItem is UserView || parentItem is ICollectionFolder)
{
- genreQuery.AncestorIds = parentItem is null ? Array.Empty<Guid>() : new[] { parentItem.Id };
- streamLanguageQuery.AncestorIds = parentItem is null ? Array.Empty<Guid>() : new[] { parentItem.Id };
+ var ancestorIds = parentItem is null ? Array.Empty<Guid>() : new[] { parentItem.Id };
+ genreQuery.AncestorIds = ancestorIds;
+ streamLanguageQuery.AncestorIds = ancestorIds;
}
else
{