diff --git a/daemon.py b/daemon.py index 731bc8512..a98ab476c 100644 --- a/daemon.py +++ b/daemon.py @@ -1091,7 +1091,7 @@ class PubServer(BaseHTTPRequestHandler): self._set_headers('application/ld+json', msglen, None, callingDomain, True) self._write(msg) - print('nodeinfo sent') + print('nodeinfo sent to ' + callingDomain) return True self._404() return True diff --git a/mastoapiv1.py b/mastoapiv1.py index 18722dfce..c3e39f80b 100644 --- a/mastoapiv1.py +++ b/mastoapiv1.py @@ -208,7 +208,7 @@ def mastoApiV1Response(path: str, callingDomain: str, registration, systemLanguage, projectVersion) - sendJsonStr = 'masto API instance metadata sent' + sendJsonStr = 'masto API instance metadata sent ' + callingDomain elif path.startswith('/api/v1/instance/peers'): # This is just a dummy result. # Showing the full list of peers would have privacy implications. @@ -216,8 +216,8 @@ def mastoApiV1Response(path: str, callingDomain: str, # small instances a full list of peers would convey a lot of # information about the interests of a small number of accounts sendJson = ['mastodon.social', domainFull] - sendJsonStr = 'masto API peers metadata sent' + sendJsonStr = 'masto API peers metadata sent ' + callingDomain elif path.startswith('/api/v1/instance/activity'): sendJson = [] - sendJsonStr = 'masto API activity metadata sent' + sendJsonStr = 'masto API activity metadata sent ' + callingDomain return sendJson, sendJsonStr