forked from indymedia/epicyon
Shared inbox may be named 'inbox'
parent
bec891c081
commit
bfbf6ec625
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue