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,6 +1448,13 @@ class PubServer(BaseHTTPRequestHandler):
searchHandle = moderationText
if searchHandle:
if '@' not in searchHandle:
# 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:
msg = \