From dbd74ed6fe31532d4da579ad08362f0ab324aeb3 Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 10 Mar 2020 14:35:12 +1000 Subject: [PATCH] handle case with a single json page better --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index a0be688..bcf52b1 100755 --- a/main.py +++ b/main.py @@ -193,7 +193,10 @@ for f in following: sys.exit(1) pleroma = False - if 'next' not in j: + if 'next' not in j and 'prev' not in j: + # there's only one page of results, don't bother doing anything special + pass + elif 'next' not in j: print("Using Pleroma compatibility mode") pleroma = True j = j['first']