Instance actor earlier

main
Bob Mottram 2021-08-31 17:54:40 +01:00
parent f661e98880
commit ad46099273
1 changed files with 23 additions and 23 deletions

View File

@ -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: