mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-27 10:58:44 +01:00
Removed user item rating mode for now - it's too much work for the ui devs
This commit is contained in:
parent
2441ba0c6d
commit
8530e69878
@@ -41,18 +41,11 @@ namespace MediaBrowser.Api.HttpHandlers
|
||||
data.Rating = null;
|
||||
}
|
||||
|
||||
// If the user's rating mode is set to like/dislike
|
||||
else if (user.ItemRatingMode == ItemRatingMode.LikeOrDislike)
|
||||
else
|
||||
{
|
||||
data.Likes = QueryString["likes"] == "1";
|
||||
}
|
||||
|
||||
// If the user's rating mode is set to numeric
|
||||
else if (user.ItemRatingMode == ItemRatingMode.Numeric)
|
||||
{
|
||||
data.Rating = float.Parse(QueryString["value"]);
|
||||
}
|
||||
|
||||
return Task.FromResult<DTOUserItemData>(ApiService.GetDTOUserItemData(data));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user