mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 23:13:06 +03:00
convert upload image url to rest
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using System;
|
||||
using System;
|
||||
using System.Net;
|
||||
|
||||
namespace MediaBrowser.Api
|
||||
@@ -10,24 +8,6 @@ namespace MediaBrowser.Api
|
||||
/// </summary>
|
||||
public static class ApiService
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a User by Id
|
||||
/// </summary>
|
||||
/// <param name="id">The id of the user</param>
|
||||
/// <returns>User.</returns>
|
||||
/// <exception cref="System.ArgumentNullException">id</exception>
|
||||
public static User GetUserById(string id)
|
||||
{
|
||||
if (string.IsNullOrEmpty(id))
|
||||
{
|
||||
throw new ArgumentNullException("id");
|
||||
}
|
||||
|
||||
var guid = new Guid(id);
|
||||
|
||||
return Kernel.Instance.GetUserById(guid);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether [is API URL match] [the specified URL].
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user