From a8c177cbd18c20d603caa5a7387700b56accf129 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 22 Oct 2019 14:53:51 +0100 Subject: [PATCH] Only show the first page if not authorized --- posts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/posts.py b/posts.py index ffeb868a1..4384b32f2 100644 --- a/posts.py +++ b/posts.py @@ -1966,6 +1966,9 @@ def createBoxBase(session,baseDir: str,boxname: str, \ ocapAlways: bool,pageNumber=None) -> {}: """Constructs the box feed for a person with the given nickname """ + if not authorized: + pageNumber=1 + if boxname!='inbox' and boxname!='dm' and \ boxname!='tlreplies' and boxname!='tlmedia' and boxname!='outbox': return None