Shared inbox may be named 'inbox'

master
Bob Mottram 2019-07-05 16:10:21 +01:00
parent bec891c081
commit bfbf6ec625
1 changed files with 3 additions and 2 deletions

View File

@ -367,7 +367,8 @@ class PubServer(BaseHTTPRequestHandler):
if self.server.debug: if self.server.debug:
print('DEBUG: Check message has params') print('DEBUG: Check message has params')
if self.path.endswith('/inbox') or self.path=='/sharedInbox': if self.path.endswith('/inbox') or \
self.path=='/sharedInbox':
if not inboxMessageHasParams(messageJson): if not inboxMessageHasParams(messageJson):
self.send_response(403) self.send_response(403)
self.end_headers() self.end_headers()
@ -412,7 +413,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.POSTbusy=False self.server.POSTbusy=False
return return
else: else:
if self.path == '/sharedInbox': if self.path == '/sharedInbox' or self.path == '/inbox':
print('DEBUG: POST to shared inbox') print('DEBUG: POST to shared inbox')
if self._updateInboxQueue('sharedinbox',messageJson): if self._updateInboxQueue('sharedinbox',messageJson):
return return