Info for local nicknames

main
Bob Mottram 2020-12-17 10:29:10 +00:00
parent b0e0bdbd69
commit fc8932f627
1 changed files with 8 additions and 1 deletions

View File

@ -1448,7 +1448,14 @@ class PubServer(BaseHTTPRequestHandler):
searchHandle = moderationText searchHandle = moderationText
if searchHandle: if searchHandle:
if '@' not in searchHandle: if '@' not in searchHandle:
searchHandle = None # is this a local nickname on this instance?
localHandle = \
searchHandle + '@' + self.server.domain
if os.path.isdir(self.server.baseDir +
'/accounts/' + localHandle):
searchHandle = localHandle
else:
searchHandle = None
if searchHandle: if searchHandle:
msg = \ msg = \
htmlAccountInfo(self.server.cssCache, htmlAccountInfo(self.server.cssCache,