mirror of https://gitlab.com/bashrc2/epicyon
Rename variable
parent
2435b520ec
commit
6911b40606
|
@ -8954,8 +8954,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
"""Shows the profile for a person
|
"""Shows the profile for a person
|
||||||
"""
|
"""
|
||||||
# look up a person
|
# look up a person
|
||||||
getPerson = personLookup(domain, path, baseDir)
|
actorJson = personLookup(domain, path, baseDir)
|
||||||
if getPerson:
|
if actorJson:
|
||||||
if self._requestHTTP():
|
if self._requestHTTP():
|
||||||
if not self.server.session:
|
if not self.server.session:
|
||||||
print('Starting new session during person lookup')
|
print('Starting new session during person lookup')
|
||||||
|
@ -8978,7 +8978,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
baseDir,
|
baseDir,
|
||||||
httpPrefix,
|
httpPrefix,
|
||||||
authorized,
|
authorized,
|
||||||
getPerson, 'posts',
|
actorJson, 'posts',
|
||||||
self.server.session,
|
self.server.session,
|
||||||
self.server.cachedWebfingers,
|
self.server.cachedWebfingers,
|
||||||
self.server.personCache,
|
self.server.personCache,
|
||||||
|
@ -8998,7 +8998,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'show profile posts')
|
'show profile posts')
|
||||||
else:
|
else:
|
||||||
if self._fetchAuthenticated():
|
if self._fetchAuthenticated():
|
||||||
msg = json.dumps(getPerson,
|
msg = json.dumps(actorJson,
|
||||||
ensure_ascii=False).encode('utf-8')
|
ensure_ascii=False).encode('utf-8')
|
||||||
msglen = len(msg)
|
msglen = len(msg)
|
||||||
self._set_headers('application/json', msglen,
|
self._set_headers('application/json', msglen,
|
||||||
|
|
Loading…
Reference in New Issue