From 556ac420e6d0a5ec4739317c2320fcd2f4b3dd12 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Tue, 13 Dec 2022 19:44:08 -0500 Subject: [PATCH] a few extra comments --- relay/http_client.py | 2 ++ relay/processors.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/relay/http_client.py b/relay/http_client.py index 797eec4..e283e85 100644 --- a/relay/http_client.py +++ b/relay/http_client.py @@ -212,6 +212,8 @@ class HttpClient(AppBase): return await self.get(nodeinfo_url, loads=Nodeinfo.new_from_json) or False +## http client methods can't be called directly from manage.py, +## so here's some wrapper functions async def get(*args, **kwargs): async with HttpClient() as client: return await client.get(*args, **kwargs) diff --git a/relay/processors.py b/relay/processors.py index 0d94f6b..9ef849f 100644 --- a/relay/processors.py +++ b/relay/processors.py @@ -106,7 +106,7 @@ async def handle_follow(request, s): followid = request.message.id ) - # Doesn't seem to work now + # Rejects don't seem to work right with mastodon request.app.push_message( request.actor.inbox, Message.new_response(