diff --git a/webapp_post.py b/webapp_post.py index 18ded1c34..9cc8617a2 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -138,14 +138,10 @@ def preparePostFromHtmlCache(nickname: str, postHtml: str, boxName: str, for keyIndex in range(10): keyStr = 'accesskey="' + str(keyIndex) + '"' if keyStr in withPageNumber: - if accessKeyIndex == 0 or accessKeyIndex > 9: - withPageNumber = \ - withPageNumber.replace(keyStr, '') - else: - withPageNumber = \ - withPageNumber.replace(keyStr, - 'accesskey="' + - str(accessKeyIndex) + '"') + withPageNumber = \ + withPageNumber.replace(keyStr, + 'accesskey="' + + str(accessKeyIndex) + '"') break return prepareHtmlPostNickname(nickname, withPageNumber)