Return to news timeline

main
Bob Mottram 2020-10-11 12:07:15 +01:00
parent 889d165aa6
commit ea85cf4a9e
2 changed files with 6 additions and 4 deletions

View File

@ -2966,7 +2966,8 @@ class PubServer(BaseHTTPRequestHandler):
print('WARN: nickname not found in ' + actorStr)
else:
print('WARN: nickname is not an editor' + actorStr)
self._redirect_headers(actorStr, cookie, callingDomain)
self._redirect_headers(actorStr + '/tlnews',
cookie, callingDomain)
self.server.POSTbusy = False
return
@ -2983,7 +2984,8 @@ class PubServer(BaseHTTPRequestHandler):
actorStr = \
'http://' + i2pDomain + usersPath
print('Maximum news data length exceeded ' + str(length))
self._redirect_headers(actorStr, cookie, callingDomain)
self._redirect_headers(actorStr + 'tlnews',
cookie, callingDomain)
self.server.POSTbusy = False
return
@ -3075,7 +3077,7 @@ class PubServer(BaseHTTPRequestHandler):
i2pDomain):
actorStr = \
'http://' + i2pDomain + usersPath
self._redirect_headers(actorStr + '/' + defaultTimeline,
self._redirect_headers(actorStr + '/tlnews',
cookie, callingDomain)
self.server.POSTbusy = False

View File

@ -1399,7 +1399,7 @@ def htmlEditNewsPost(translate: {}, baseDir: str, path: str,
editNewsPostForm += \
' <div class="container">\n'
editNewsPostForm += \
' <a href="' + pathOriginal + '"><button class="cancelbtn">' + \
' <a href="' + pathOriginal + '/tlnews"><button class="cancelbtn">' + \
translate['Go Back'] + '</button></a>\n'
editNewsPostForm += \
' <input type="submit" name="submitEditedNewsPost" value="' + \