From a0f973d0de41e1fd0c8875a5eb5c09b7ca1b612d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 25 Aug 2020 15:28:16 +0100 Subject: [PATCH] Redirect to events after posting new event --- daemon.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index 164a60a60..fc1ba1e51 100644 --- a/daemon.py +++ b/daemon.py @@ -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: