Return to calendar

main
Bob Mottram 2020-02-23 12:32:41 +00:00
parent dd83fa664b
commit 7d5800fd1b
2 changed files with 9 additions and 2 deletions

View File

@ -1536,7 +1536,14 @@ class PubServer(BaseHTTPRequestHandler):
self.server.baseDir,self.path, \
self.server.httpPrefix, \
self.server.domainFull,
postId,postTime).encode()
postId,postTime)
if not msg:
actor= \
self.server.httpPrefix+'://'+self.server.domainFull+ \
self.path.split('/eventdelete')[0]
self._redirect_headers(actor+'/calendar',cookie)
return
msg=msg.encode()
self._set_headers('text/html',len(msg),cookie)
self._write(msg)
self.server.GETbusy=False

View File

@ -3402,7 +3402,7 @@ def htmlCalendarDeleteConfirm(translate: {},baseDir: str, \
deletePostStr+=' <input type="hidden" name="pageNumber" value="1">'
deletePostStr+=' <input type="hidden" name="messageId" value="'+messageId+'">'
deletePostStr+=' <button type="submit" class="button" name="submitYes">'+translate['Yes']+'</button>'
deletePostStr+=' <a href="'+actor+'/inbox'+'"><button class="button">'+translate['No']+'</button></a>'
deletePostStr+=' <a href="'+actor+'/calendar'+'"><button class="button">'+translate['No']+'</button></a>'
deletePostStr+=' </form>'
deletePostStr+='</center>'
deletePostStr+=htmlFooter()