From 6911b406068cc0e20a1d80663cb0dd82078e6c27 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 21 Jan 2021 12:31:11 +0000 Subject: [PATCH] Rename variable --- daemon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index 20649d572..2e668f4a9 100644 --- a/daemon.py +++ b/daemon.py @@ -8954,8 +8954,8 @@ class PubServer(BaseHTTPRequestHandler): """Shows the profile for a person """ # look up a person - getPerson = personLookup(domain, path, baseDir) - if getPerson: + actorJson = personLookup(domain, path, baseDir) + if actorJson: if self._requestHTTP(): if not self.server.session: print('Starting new session during person lookup') @@ -8978,7 +8978,7 @@ class PubServer(BaseHTTPRequestHandler): baseDir, httpPrefix, authorized, - getPerson, 'posts', + actorJson, 'posts', self.server.session, self.server.cachedWebfingers, self.server.personCache, @@ -8998,7 +8998,7 @@ class PubServer(BaseHTTPRequestHandler): 'show profile posts') else: if self._fetchAuthenticated(): - msg = json.dumps(getPerson, + msg = json.dumps(actorJson, ensure_ascii=False).encode('utf-8') msglen = len(msg) self._set_headers('application/json', msglen,