mirror of https://gitlab.com/bashrc2/epicyon
Redirect to events after posting new event
parent
9b2356e195
commit
a0f973d0de
|
@ -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
|
||||||
else:
|
if currPostType == 'newshare':
|
||||||
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:
|
||||||
|
|
Loading…
Reference in New Issue