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

View File

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