From 9f58c88e9f9b221944c8a26de1a3b9382338aa77 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Sun, 4 Dec 2022 04:16:50 -0500 Subject: [PATCH] Fix NameError when getting nodeinfo software name in processors --- relay/processors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/processors.py b/relay/processors.py index 2e2a977..b980f87 100644 --- a/relay/processors.py +++ b/relay/processors.py @@ -50,7 +50,7 @@ async def handle_forward(request): async def handle_follow(request): nodeinfo = await request.app.client.fetch_nodeinfo(request.actor.domain) - software = nodeinfo.swname if nodeinfo else None + software = nodeinfo.sw_name if nodeinfo else None ## reject if software used by actor is banned if request.config.is_banned_software(software): @@ -119,7 +119,7 @@ async def run_processor(request): nodeinfo = await request.app.client.fetch_nodeinfo(request.instance['domain']) if nodeinfo: - request.instance['software'] = nodeinfo.swname + request.instance['software'] = nodeinfo.sw_name request.database.save() logging.verbose(f'New "{request.message.type}" from actor: {request.actor.id}')