More reserved names

main2
Bob Mottram 2019-10-10 19:30:25 +01:00
parent aaa60e2763
commit 6ec9946a29
2 changed files with 2 additions and 2 deletions

View File

@ -1046,7 +1046,7 @@ class PubServer(BaseHTTPRequestHandler):
# Show the calendar for a user
if htmlGET and '/users/' in self.path:
if '/calendar?' in self.path:
if '/calendar' in self.path:
# show the calendar screen
msg=htmlCalendar(self.server.translate, \
self.server.baseDir,self.path).encode()

View File

@ -310,7 +310,7 @@ def validNickname(domain: str,nickname: str) -> bool:
return False
if nickname==domain:
return False
reservedNames=['inbox','dm','outbox','following','public','followers','capabilities']
reservedNames=['inbox','dm','outbox','following','public','followers','capabilities','calendar','tlreplies','tlmedia','moderation']
if nickname in reservedNames:
return False
return True