From 800b50996fc7cecf8035786e7cf61d2b7960625f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 8 Aug 2019 09:54:41 +0100 Subject: [PATCH] nickname from path --- daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon.py b/daemon.py index 8b73417c..c82599d8 100644 --- a/daemon.py +++ b/daemon.py @@ -1958,6 +1958,8 @@ class PubServer(BaseHTTPRequestHandler): 'cc': ['https://www.w3.org/ns/activitystreams#Public'] } } + pathUsersSection=self.path.split('/users/')[1] + self.postToNickname=pathUsersSection.split('/')[0] self._postToOutbox(unfollowJson) self._redirect_headers(originPathStr,cookie) self.server.POSTbusy=False