mirror of https://gitlab.com/bashrc2/epicyon
Instance actor earlier
parent
f661e98880
commit
ad46099273
46
daemon.py
46
daemon.py
|
@ -11152,6 +11152,29 @@ 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,
|
||||
cookie, 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'):
|
||||
|
@ -11201,29 +11224,6 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
'favicon.ico')
|
||||
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
|
||||
authorized = self._isAuthorized()
|
||||
if self.server.debug:
|
||||
|
|
Loading…
Reference in New Issue