mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-23 15:08:00 +00:00
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
|
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 def get(*args, **kwargs):
|
||||||
async with HttpClient() as client:
|
async with HttpClient() as client:
|
||||||
return await client.get(*args, **kwargs)
|
return await client.get(*args, **kwargs)
|
||||||
|
|
|
@ -106,7 +106,7 @@ async def handle_follow(request, s):
|
||||||
followid = request.message.id
|
followid = request.message.id
|
||||||
)
|
)
|
||||||
|
|
||||||
# Doesn't seem to work now
|
# Rejects don't seem to work right with mastodon
|
||||||
request.app.push_message(
|
request.app.push_message(
|
||||||
request.actor.inbox,
|
request.actor.inbox,
|
||||||
Message.new_response(
|
Message.new_response(
|
||||||
|
|
Loading…
Reference in a new issue