mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
Upgraded Protobuf, and added api support for it
This commit is contained in:
parent
de74609784
commit
cb7f04e4d3
@@ -171,7 +171,7 @@ namespace MediaBrowser.Api
|
||||
}
|
||||
|
||||
return baseItemStudio;
|
||||
});
|
||||
}).ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -218,7 +218,7 @@ namespace MediaBrowser.Api
|
||||
}
|
||||
|
||||
return baseItemPerson;
|
||||
});
|
||||
}).ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -269,5 +269,15 @@ namespace MediaBrowser.Api
|
||||
Name = entity.Name
|
||||
};
|
||||
}
|
||||
|
||||
public static DTOUser GetDTOUser(User user)
|
||||
{
|
||||
return new DTOUser()
|
||||
{
|
||||
Id = user.Id,
|
||||
Name = user.Name,
|
||||
HasImage = !string.IsNullOrEmpty(user.PrimaryImagePath)
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user