Snake case

main
Bob Mottram 2021-12-28 17:09:43 +00:00
parent aca221a57c
commit 114e6c7bf4
2 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ from hashlib import md5
from shutil import copyfile
from session import create_session
from webfinger import webfinger_meta
from webfinger import webfingerNodeInfo
from webfinger import webfinger_node_info
from webfinger import webfingerLookup
from webfinger import webfingerUpdate
from mastoapiv1 import mastoApiV1Response
@ -1212,15 +1212,15 @@ class PubServer(BaseHTTPRequestHandler):
if calling_domain.endswith('.onion') and \
self.server.onion_domain:
wfResult = \
webfingerNodeInfo('http', self.server.onion_domain)
webfinger_node_info('http', self.server.onion_domain)
elif (calling_domain.endswith('.i2p') and
self.server.i2p_domain):
wfResult = \
webfingerNodeInfo('http', self.server.i2p_domain)
webfinger_node_info('http', self.server.i2p_domain)
else:
wfResult = \
webfingerNodeInfo(self.server.http_prefix,
self.server.domain_full)
webfinger_node_info(self.server.http_prefix,
self.server.domain_full)
if wfResult:
msg = json.dumps(wfResult).encode('utf-8')
msglen = len(msg)

View File

@ -181,7 +181,7 @@ def createWebfingerEndpoint(nickname: str, domain: str, port: int,
return account
def webfingerNodeInfo(http_prefix: str, domain_full: str) -> {}:
def webfinger_node_info(http_prefix: str, domain_full: str) -> {}:
""" /.well-known/nodeinfo endpoint
"""
nodeinfo = {