From 314587e2eb6f9437ec8e9ad971c25dd54c9ce171 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Sat, 7 Apr 2018 18:37:40 +0200 Subject: [PATCH] Fixed pagination issue --- api/funkwhale_api/federation/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/funkwhale_api/federation/serializers.py b/api/funkwhale_api/federation/serializers.py index d8e5ddb2d..a3ba80749 100644 --- a/api/funkwhale_api/federation/serializers.py +++ b/api/funkwhale_api/federation/serializers.py @@ -273,7 +273,7 @@ class CollectionPageSerializer(serializers.Serializer): d['prev'] = set_query_parameter( conf['id'], page=page.previous_page_number()) - if page.has_previous(): + if page.has_next(): d['next'] = set_query_parameter( conf['id'], page=page.next_page_number())