From 0088ae2aacc281fb8de043ad0c515816a63242e9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Oct 2019 16:48:06 +0100 Subject: [PATCH] View button on search screen --- daemon.py | 7 +++++++ webinterface.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 042c9da4..56e77814 100644 --- a/daemon.py +++ b/daemon.py @@ -3443,6 +3443,13 @@ class PubServer(BaseHTTPRequestHandler): followerNickname=getNicknameFromActor(originPathStr) length = int(self.headers['Content-length']) followConfirmParams=self.rfile.read(length).decode('utf-8') + if '&submitView=' in followConfirmParams: + followingActor=followConfirmParams.replace('%3A',':').replace('%2F','/').split('actor=')[1] + if '&' in followingActor: + followingActor=followingActor.split('&')[0] + self._redirect_headers(followingActor,cookie) + self.server.POSTbusy=False + return if '&submitYes=' in followConfirmParams: followingActor=followConfirmParams.replace('%3A',':').replace('%2F','/').split('actor=')[1] if '&' in followingActor: diff --git a/webinterface.py b/webinterface.py index c96a2948..b4df8730 100644 --- a/webinterface.py +++ b/webinterface.py @@ -3258,7 +3258,7 @@ def htmlProfileAfterSearch(translate: {}, \ '
' \ ' ' \ ' ' \ - ' ' \ + ' ' \ ' ' \ '
' \ ' ' \