mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #2039 from Bond-009/fixcondition
Fix always false condition (cherry picked from commit 47ad21b6e396de836480211515de32f213cef590) Signed-off-by: Joshua Boniface <joshua@boniface.me>
This commit is contained in:
parent
0f18482ba6
commit
06aac98996
@ -109,6 +109,11 @@ namespace MediaBrowser.Api.UserLibrary
|
|||||||
NameContains = query.NameContains ?? query.SearchTerm
|
NameContains = query.NameContains ?? query.SearchTerm
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if ((query.IsFavorite ?? false) && query.User != null)
|
||||||
|
{
|
||||||
|
items = items.Where(i => UserDataRepository.GetUserData(query.User, i).IsFavorite).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
return new QueryResult<(BaseItem, ItemCounts)>
|
return new QueryResult<(BaseItem, ItemCounts)>
|
||||||
{
|
{
|
||||||
TotalRecordCount = items.Count,
|
TotalRecordCount = items.Count,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user