From 9fff2ac7fa3c32970bb0fd46abd1a55577f8ed11 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 6 Sep 2019 10:25:33 +0100 Subject: [PATCH] Append page number only if it exists --- webinterface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index a6052be9..fd54d47d 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1683,7 +1683,8 @@ def individualPostAsHtml(pageNumber: int,baseDir: str, \ replyToLink+='?mention='+actorUrl if len(replyToLink)>500: break - replyToLink+='?page='+str(pageNumber) + if pageNumber: + replyToLink+='?page='+str(pageNumber) footerStr='
' if not isModerationPost and showRepeatIcon: