mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-13 09:43:12 +01:00
All calls to get items now require passing in a userId. Made the model project portable. Also filled in more api calls.
This commit is contained in:
parent
baedafbeb9
commit
6fbd5cf464
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using MediaBrowser.Common.Net;
|
||||
using MediaBrowser.Common.Net.Handlers;
|
||||
@@ -19,7 +20,7 @@ namespace MediaBrowser.Api.HttpHandlers
|
||||
{
|
||||
return ItemsToSerialize.Select(i =>
|
||||
{
|
||||
return ItemHandler.GetSerializationObject(i, false);
|
||||
return ItemHandler.GetSerializationObject(i, false, UserId);
|
||||
|
||||
});
|
||||
}
|
||||
@@ -29,5 +30,13 @@ namespace MediaBrowser.Api.HttpHandlers
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
protected Guid UserId
|
||||
{
|
||||
get
|
||||
{
|
||||
return Guid.Parse(QueryString["userid"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user