fix nodeinfo fetching in run_processor

This commit is contained in:
Izalia Mae 2022-11-25 13:19:29 -05:00
parent 8541f63762
commit 017363ecd5

View file

@ -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}')