From 29a2cc23ffdcb21500d5b13d0e5d55fafb6d0330 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Tue, 31 Jul 2018 23:23:20 +0200 Subject: [PATCH] Fix pagination --- app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.py b/app.py index 0899332..221bcf6 100644 --- a/app.py +++ b/app.py @@ -1110,6 +1110,7 @@ def outbox(): q=q, cursor=request.args.get("cursor"), map_func=lambda doc: activity_from_doc(doc, embed=True), + col_name="outbox", ) ) @@ -1596,6 +1597,7 @@ def inbox(): q={"meta.deleted": False, "box": Box.INBOX.value}, cursor=request.args.get("cursor"), map_func=lambda doc: remove_context(doc["activity"]), + col_name="inbox", ) ) @@ -1783,6 +1785,7 @@ def followers(): q=q, cursor=request.args.get("cursor"), map_func=lambda doc: doc["activity"]["actor"], + col_name="followers", ) ) @@ -1812,6 +1815,7 @@ def following(): q=q, cursor=request.args.get("cursor"), map_func=lambda doc: doc["activity"]["object"], + col_name="following", ) )