diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-05-30 10:00:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-30 10:00:53 +0200 |
| commit | 6dca53047faf014314a63221771180be2a33259a (patch) | |
| tree | dee45f5871c6f40701d7681983685d7270cad0eb /Jellyfin.Api/Controllers/ItemsController.cs | |
| parent | d8f0933f335044249048e9ae0c0030ca0b780fee (diff) | |
| parent | 81746666ded02f844605fb26bc1c0ac2dd650bb0 (diff) | |
Merge pull request #9818 from Shadowghost/fixes
Diffstat (limited to 'Jellyfin.Api/Controllers/ItemsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/ItemsController.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.cs index d4116116b..7650b861f 100644 --- a/Jellyfin.Api/Controllers/ItemsController.cs +++ b/Jellyfin.Api/Controllers/ItemsController.cs @@ -512,12 +512,10 @@ public class ItemsController : BaseJellyfinApiController result = new QueryResult<BaseItem>(itemsArray); } - // result might include items not accessible by the user, DtoService will remove them - var accessibleItems = _dtoService.GetBaseItemDtos(result.Items, dtoOptions, user); return new QueryResult<BaseItemDto>( startIndex, - accessibleItems.Count, - accessibleItems); + result.TotalRecordCount, + _dtoService.GetBaseItemDtos(result.Items, dtoOptions, user)); } /// <summary> |
