Redirect on search failure

master
Bob Mottram 2019-09-01 13:33:05 +01:00
parent c8142aa022
commit 132cb65030
1 changed files with 4 additions and 0 deletions

View File

@ -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"