From 017363ecd5a371e25c7d9c23254df9e43f230378 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Fri, 25 Nov 2022 13:19:29 -0500 Subject: [PATCH] fix nodeinfo fetching in run_processor --- relay/processors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/processors.py b/relay/processors.py index 46d23e4..0b575b4 100644 --- a/relay/processors.py +++ b/relay/processors.py @@ -123,10 +123,10 @@ async def run_processor(request): return if request.instance and not request.instance.get('software'): - nodeinfo = await misc.fetch_nodeinfo(request.instance.domain) + nodeinfo = await misc.fetch_nodeinfo(request.instance['domain']) if nodeinfo: - request.instance[nodeinfo] = nodeinfo.swname + request.instance['software'] = nodeinfo.swname request.database.save() logging.verbose(f'New "{request.message.type}" from actor: {request.actor.id}')