main
Bob Mottram 2020-05-23 15:26:49 +01:00
parent 46b1f6311b
commit 75cd12e4c8
1 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ class PubServer(BaseHTTPRequestHandler):
"""Returns true if minimal buttons should be shown """Returns true if minimal buttons should be shown
for the given account for the given account
""" """
accountDir = self.baseDir + '/accounts/' + \ accountDir = self.server.baseDir + '/accounts/' + \
nickname + '@' + self.server.domain nickname + '@' + self.server.domain
if not os.path.isdir(accountDir): if not os.path.isdir(accountDir):
return False return False
@ -232,7 +232,7 @@ class PubServer(BaseHTTPRequestHandler):
def _setMinimal(self, nickname: str, minimal: bool) -> None: def _setMinimal(self, nickname: str, minimal: bool) -> None:
"""Sets whether an account should display minimal buttons """Sets whether an account should display minimal buttons
""" """
accountDir = self.baseDir + '/accounts/' + \ accountDir = self.server.baseDir + '/accounts/' + \
nickname + '@' + self.server.domain nickname + '@' + self.server.domain
if not os.path.isdir(accountDir): if not os.path.isdir(accountDir):
return return