From 30a3b92f263e0f8affdb49af93124b5ab67e92e5 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Fri, 6 May 2022 04:12:12 -0400 Subject: [PATCH] fixes --- relay/processors.py | 2 +- relay/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/processors.py b/relay/processors.py index f082ff5..de8cbb4 100644 --- a/relay/processors.py +++ b/relay/processors.py @@ -47,7 +47,7 @@ async def handle_forward(actor, data, request): logging.verbose(f'Forwarding post from {actor["id"]}') logging.debug(f'>> Relay {data}') - inboxes = misc.distill_inboxes(actor['id'], object_id) + inboxes = misc.distill_inboxes(actor, object_id) futures = [misc.request(inbox, data=data) for inbox in inboxes] asyncio.ensure_future(asyncio.gather(*futures)) diff --git a/relay/views.py b/relay/views.py index 279204f..0ba2f99 100644 --- a/relay/views.py +++ b/relay/views.py @@ -117,7 +117,7 @@ async def inbox(request): ## reject if software used by actor is banned if len(config.blocked_software): - software = await fetch_nodeinfo(actor_domain) + software = await misc.fetch_nodeinfo(actor_domain) if config.is_banned_software(software): logging.verbose(f'Rejected actor for using specific software: {software}')