mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-16 23:26:22 +00:00
Merge pull request #2039 from Bond-009/fixcondition
Fix always false condition
(cherry picked from commit 47ad21b6e3)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
This commit is contained in:
@@ -109,6 +109,11 @@ namespace MediaBrowser.Api.UserLibrary
|
||||
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)>
|
||||
{
|
||||
TotalRecordCount = items.Count,
|
||||
|
||||
Reference in New Issue
Block a user