Redirect to events after posting new event

main
Bob Mottram 2020-08-25 15:28:16 +01:00
parent 9b2356e195
commit a0f973d0de
1 changed files with 4 additions and 3 deletions

View File

@ -8540,10 +8540,11 @@ class PubServer(BaseHTTPRequestHandler):
if not authorized: if not authorized:
break break
if currPostType != 'newshare': postRedirect = self.server.defaultTimeline
postRedirect = self.server.defaultTimeline if currPostType == 'newshare':
else:
postRedirect = 'shares' postRedirect = 'shares'
elif currPostType == 'newevent':
postRedirect = 'tlevents'
pageNumber = self._receiveNewPost(currPostType, self.path) pageNumber = self._receiveNewPost(currPostType, self.path)
if pageNumber: if pageNumber: