cvium 3 年之前
父节点
当前提交
c1c77c8762
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Emby.Dlna/ContentDirectory/ControlHandler.cs

+ 2 - 0
Emby.Dlna/ContentDirectory/ControlHandler.cs

@@ -1051,6 +1051,7 @@ namespace Emby.Dlna.ContentDirectory
                 {
                     Limit = query.Limit,
                     StartIndex = query.StartIndex,
+                    // User cannot be null here as the caller has set it
                     UserId = query.User!.Id
                 },
                 new[] { parent },
@@ -1073,6 +1074,7 @@ namespace Emby.Dlna.ContentDirectory
             var items = _userViewManager.GetLatestItems(
                 new LatestItemsQuery
                 {
+                    // User cannot be null here as the caller has set it
                     UserId = query.User!.Id,
                     Limit = query.Limit ?? 50,
                     IncludeItemTypes = new[] { itemType },