From 132cb650304fed20e637e4bb70f3f32ba7e33c83 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 1 Sep 2019 13:33:05 +0100 Subject: [PATCH] Redirect on search failure --- daemon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon.py b/daemon.py index f3adc9154..54f415cd7 100644 --- a/daemon.py +++ b/daemon.py @@ -2608,6 +2608,10 @@ class PubServer(BaseHTTPRequestHandler): self.wfile.write(msg) self.server.POSTbusy=False return + else: + self._redirect_headers(actorStr+'/search',cookie) + self.server.POSTbusy=False + return elif searchStr.startswith(':') or \ searchStr.lower().strip('\n').endswith(' emoji'): # eg. "cat emoji"