Fixing bug with null limit on a page

This commit is contained in:
Zoe Roux 2020-09-20 23:40:33 +02:00
parent 5b7740f2d9
commit 6575cb5ea6

View File

@ -35,7 +35,7 @@ namespace Kyoo.Models
Items = items;
This = url + query.ToQueryString();
if (items.Count == limit)
if (items.Count == limit && limit > 0)
{
query["afterID"] = items.Last().ID.ToString();
Next = url + query.ToQueryString();