Replace page number

main2
Bob Mottram 2019-10-20 09:52:31 +01:00
parent 6955d1f0d8
commit 4ca3ac28cd
2 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def inboxStorePostToHtmlCache(translate: {}, \
"""Converts the json post into html and stores it in a cache """Converts the json post into html and stores it in a cache
This enables the post to be quickly displayed later This enables the post to be quickly displayed later
""" """
pageNumber=1 pageNumber=-999
showAvatarOptions=True showAvatarOptions=True
avatarUrl=None avatarUrl=None
boxName='inbox' boxName='inbox'

View File

@ -1780,6 +1780,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
loadIndividualPostAsHtmlFromCache(baseDir,nickname,domain, \ loadIndividualPostAsHtmlFromCache(baseDir,nickname,domain, \
postJsonObject) postJsonObject)
if postHtml: if postHtml:
postHtml.replace(';-999;',';'+str(pageNumber)+';')
return postHtml return postHtml
# If this is the inbox timeline then don't show the repeat icon on any DMs # If this is the inbox timeline then don't show the repeat icon on any DMs