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:
break
if currPostType != 'newshare':
postRedirect = self.server.defaultTimeline
else:
postRedirect = self.server.defaultTimeline
if currPostType == 'newshare':
postRedirect = 'shares'
elif currPostType == 'newevent':
postRedirect = 'tlevents'
pageNumber = self._receiveNewPost(currPostType, self.path)
if pageNumber: