From 4ca3ac28cd744dc2d4b21637dfc6ac35dd4533a0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Oct 2019 09:52:31 +0100 Subject: [PATCH] Replace page number --- inbox.py | 2 +- webinterface.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index a559b4c21..4b683382b 100644 --- a/inbox.py +++ b/inbox.py @@ -59,7 +59,7 @@ def inboxStorePostToHtmlCache(translate: {}, \ """Converts the json post into html and stores it in a cache This enables the post to be quickly displayed later """ - pageNumber=1 + pageNumber=-999 showAvatarOptions=True avatarUrl=None boxName='inbox' diff --git a/webinterface.py b/webinterface.py index d6b7d2a1a..79688e91d 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1780,6 +1780,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ loadIndividualPostAsHtmlFromCache(baseDir,nickname,domain, \ postJsonObject) if postHtml: + postHtml.replace(';-999;',';'+str(pageNumber)+';') return postHtml # If this is the inbox timeline then don't show the repeat icon on any DMs