mirror of https://gitlab.com/bashrc2/epicyon
No http get for instance actor
parent
cd6f2fdbbb
commit
8093fe92eb
47
daemon.py
47
daemon.py
|
@ -11159,29 +11159,6 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.path.replace('/users/' + nickname + '/',
|
||||
'/users/' + nickname + '/statuses/')
|
||||
|
||||
# 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,
|
||||
None, self.server.debug,
|
||||
self.server.enableSharedInbox):
|
||||
return
|
||||
else:
|
||||
self._404()
|
||||
return
|
||||
|
||||
# turn off dropdowns on new post screen
|
||||
noDropDown = False
|
||||
if self.path.endswith('?nodropdown'):
|
||||
|
@ -11485,6 +11462,30 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
||||
'create session', 'hasAccept')
|
||||
|
||||
# instance actor
|
||||
if not httpGET:
|
||||
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,
|
||||
None, self.server.debug,
|
||||
self.server.enableSharedInbox):
|
||||
return
|
||||
else:
|
||||
self._404()
|
||||
return
|
||||
|
||||
# get css
|
||||
# Note that this comes before the busy flag to avoid conflicts
|
||||
if self.path.endswith('.css'):
|
||||
|
|
Loading…
Reference in New Issue