a few extra comments
This commit is contained in:
parent
2c287d301f
commit
556ac420e6
|
@ -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)
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue