mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-31 01:51:15 +00:00
baseDir
This commit is contained in:
1 parent
46b1f6311b
commit
75cd12e4c8
1 file changed
+2
-2
@@ -220,7 +220,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||
"""Returns true if minimal buttons should be shown
|
||||
for the given account
|
||||
"""
|
||||
accountDir = self.baseDir + '/accounts/' + \
|
||||
accountDir = self.server.baseDir + '/accounts/' + \
|
||||
nickname + '@' + self.server.domain
|
||||
if not os.path.isdir(accountDir):
|
||||
return False
|
||||
@@ -232,7 +232,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||
def _setMinimal(self, nickname: str, minimal: bool) -> None:
|
||||
"""Sets whether an account should display minimal buttons
|
||||
"""
|
||||
accountDir = self.baseDir + '/accounts/' + \
|
||||
accountDir = self.server.baseDir + '/accounts/' + \
|
||||
nickname + '@' + self.server.domain
|
||||
if not os.path.isdir(accountDir):
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user