From 301c626010de082d21a141a10f1d8010183bb8ca Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 5 Aug 2019 17:18:11 +0100 Subject: [PATCH] No nickname validity check for shared inbox --- person.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/person.py b/person.py index 6b868383d..0a4b7403b 100644 --- a/person.py +++ b/person.py @@ -268,8 +268,10 @@ def personLookup(domain: str,path: str,baseDir: str) -> {}: if path.endswith('#main-key'): path=path.replace('#main-key','') # is this a shared inbox lookup? + isSharedInbox=False if path=='/inbox' or path=='/users/inbox' or path=='/sharedInbox': path='/users/inbox' + isSharedInbox=True else: notPersonLookup=['/inbox','/outbox','/outboxarchive', \ '/followers','/following','/featured', \ @@ -284,7 +286,7 @@ def personLookup(domain: str,path: str,baseDir: str) -> {}: nickname=path.replace('/@','',1) if not nickname: return None - if not validNickname(nickname): + if not isSharedInbox and not validNickname(nickname): return None if ':' in domain: domain=domain.split(':')[0]