mirror of https://gitlab.com/bashrc2/epicyon
Instance actor earlier
parent
0b3bed070d
commit
f661e98880
47
daemon.py
47
daemon.py
|
@ -11201,6 +11201,29 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'favicon.ico')
|
'favicon.ico')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# instance actor
|
||||||
|
if self.path == '/actor' or \
|
||||||
|
self.path == '/users/actor' or \
|
||||||
|
self.path == '/Actor' or \
|
||||||
|
self.path == '/users/Actor':
|
||||||
|
self.path = '/users/inbox'
|
||||||
|
if self._showInstanceActor(callingDomain, self.path,
|
||||||
|
self.server.baseDir,
|
||||||
|
self.server.httpPrefix,
|
||||||
|
self.server.domain,
|
||||||
|
self.server.domainFull,
|
||||||
|
self.server.port,
|
||||||
|
self.server.onionDomain,
|
||||||
|
self.server.i2pDomain,
|
||||||
|
GETstartTime, GETtimings,
|
||||||
|
self.server.proxyType,
|
||||||
|
cookie, self.server.debug,
|
||||||
|
self.server.enableSharedInbox):
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
self._404()
|
||||||
|
return
|
||||||
|
|
||||||
# check authorization
|
# check authorization
|
||||||
authorized = self._isAuthorized()
|
authorized = self._isAuthorized()
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
|
@ -11479,29 +11502,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
||||||
'hasAccept', 'fonts')
|
'hasAccept', 'fonts')
|
||||||
|
|
||||||
if not htmlGET and \
|
if self.path == '/sharedInbox' or \
|
||||||
self.path == '/actor' or \
|
|
||||||
self.path == '/users/actor' or \
|
|
||||||
self.path == '/Actor' or \
|
|
||||||
self.path == '/users/Actor':
|
|
||||||
self.path = '/users/inbox'
|
|
||||||
if self._showInstanceActor(callingDomain, self.path,
|
|
||||||
self.server.baseDir,
|
|
||||||
self.server.httpPrefix,
|
|
||||||
self.server.domain,
|
|
||||||
self.server.domainFull,
|
|
||||||
self.server.port,
|
|
||||||
self.server.onionDomain,
|
|
||||||
self.server.i2pDomain,
|
|
||||||
GETstartTime, GETtimings,
|
|
||||||
self.server.proxyType,
|
|
||||||
cookie, self.server.debug,
|
|
||||||
self.server.enableSharedInbox):
|
|
||||||
return
|
|
||||||
else:
|
|
||||||
self._404()
|
|
||||||
return
|
|
||||||
elif self.path == '/sharedInbox' or \
|
|
||||||
self.path == '/users/inbox' or \
|
self.path == '/users/inbox' or \
|
||||||
self.path == '/actor/inbox' or \
|
self.path == '/actor/inbox' or \
|
||||||
self.path == '/users/' + self.server.domain:
|
self.path == '/users/' + self.server.domain:
|
||||||
|
|
Loading…
Reference in New Issue