a few extra comments

This commit is contained in:
Izalia Mae 2022-12-13 19:44:08 -05:00
parent 2c287d301f
commit 556ac420e6
2 changed files with 3 additions and 1 deletions

View file

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

View file

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