diff --git a/webinterface.py b/webinterface.py index fd54d47d..28353ae3 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1630,6 +1630,10 @@ def individualPostAsHtml(pageNumber: int,baseDir: str, \ publishedStr=datetimeObject.strftime("%a %b %d, %H:%M") footerStr=''+publishedStr+'\n' + pageNumberParam='' + if pageNumber: + pageNumberParam='?page='+str(pageNumber) + announceStr='' if not isModerationPost and showRepeatIcon: # don't allow announce/repeat of your own posts @@ -1641,7 +1645,7 @@ def individualPostAsHtml(pageNumber: int,baseDir: str, \ announceLink='unrepeat' announceTitle='Undo the repeat this post' announceStr= \ - '' \ + '' \ '' likeStr='' @@ -1654,7 +1658,7 @@ def individualPostAsHtml(pageNumber: int,baseDir: str, \ likeLink='unlike' likeTitle='Undo the like of this post' likeStr= \ - '' \ + '' \ '' deleteStr='' @@ -1663,7 +1667,7 @@ def individualPostAsHtml(pageNumber: int,baseDir: str, \ postJsonObject['object']['id'].startswith(postJsonObject['actor'])): if '/users/'+nickname+'/' in postJsonObject['object']['id']: deleteStr= \ - '' \ + '' \ '' # change the background color for DMs in inbox timeline @@ -1683,8 +1687,7 @@ def individualPostAsHtml(pageNumber: int,baseDir: str, \ replyToLink+='?mention='+actorUrl if len(replyToLink)>500: break - if pageNumber: - replyToLink+='?page='+str(pageNumber) + replyToLink+=pageNumberParam footerStr='