mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
e9a98497c1
commit
376ad52ed0
14
daemon.py
14
daemon.py
|
@ -12269,7 +12269,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
GETstartTime,
|
GETstartTime,
|
||||||
proxyType: str, cookie: str,
|
proxyType: str, cookie: str,
|
||||||
debug: str,
|
debug: str,
|
||||||
enableSharedInbox: bool) -> bool:
|
enable_shared_inbox: bool) -> bool:
|
||||||
"""Shows the instance actor
|
"""Shows the instance actor
|
||||||
"""
|
"""
|
||||||
if debug:
|
if debug:
|
||||||
|
@ -12298,7 +12298,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if r in actorJson:
|
if r in actorJson:
|
||||||
del actorJson[r]
|
del actorJson[r]
|
||||||
actorJson['endpoints'] = {}
|
actorJson['endpoints'] = {}
|
||||||
if enableSharedInbox:
|
if enable_shared_inbox:
|
||||||
actorJson['endpoints'] = {
|
actorJson['endpoints'] = {
|
||||||
'sharedInbox': actorDomainUrl + '/inbox'
|
'sharedInbox': actorDomainUrl + '/inbox'
|
||||||
}
|
}
|
||||||
|
@ -13415,7 +13415,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
GETstartTime,
|
GETstartTime,
|
||||||
self.server.proxyType,
|
self.server.proxyType,
|
||||||
None, self.server.debug,
|
None, self.server.debug,
|
||||||
self.server.enableSharedInbox):
|
self.server.enable_shared_inbox):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
self._404()
|
self._404()
|
||||||
|
@ -13777,7 +13777,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.path == '/actor/inbox' or \
|
self.path == '/actor/inbox' or \
|
||||||
self.path == '/users/' + self.server.domain:
|
self.path == '/users/' + self.server.domain:
|
||||||
# if shared inbox is not enabled
|
# if shared inbox is not enabled
|
||||||
if not self.server.enableSharedInbox:
|
if not self.server.enable_shared_inbox:
|
||||||
self._503()
|
self._503()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -17521,7 +17521,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.path = self.path.replace('/sharedInbox/', '/sharedInbox')
|
self.path = self.path.replace('/sharedInbox/', '/sharedInbox')
|
||||||
|
|
||||||
if self.path == '/inbox':
|
if self.path == '/inbox':
|
||||||
if not self.server.enableSharedInbox:
|
if not self.server.enable_shared_inbox:
|
||||||
self._503()
|
self._503()
|
||||||
self.server.POSTbusy = False
|
self.server.POSTbusy = False
|
||||||
return
|
return
|
||||||
|
@ -18453,7 +18453,7 @@ def runDaemon(content_license_url: str,
|
||||||
blogs_instance: bool,
|
blogs_instance: bool,
|
||||||
media_instance: bool,
|
media_instance: bool,
|
||||||
max_recent_posts: int,
|
max_recent_posts: int,
|
||||||
enableSharedInbox: bool, registration: bool,
|
enable_shared_inbox: bool, registration: bool,
|
||||||
language: str, projectVersion: str,
|
language: str, projectVersion: str,
|
||||||
instanceId: str, clientToServer: bool,
|
instanceId: str, clientToServer: bool,
|
||||||
base_dir: str, domain: str,
|
base_dir: str, domain: str,
|
||||||
|
@ -18702,7 +18702,7 @@ def runDaemon(content_license_url: str,
|
||||||
httpd.registration = True
|
httpd.registration = True
|
||||||
else:
|
else:
|
||||||
httpd.registration = False
|
httpd.registration = False
|
||||||
httpd.enableSharedInbox = enableSharedInbox
|
httpd.enable_shared_inbox = enable_shared_inbox
|
||||||
httpd.outboxThread = {}
|
httpd.outboxThread = {}
|
||||||
httpd.outboxThreadIndex = {}
|
httpd.outboxThreadIndex = {}
|
||||||
httpd.newPostThread = {}
|
httpd.newPostThread = {}
|
||||||
|
|
Loading…
Reference in New Issue