mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-22 06:27:59 +00:00
fix nodeinfo fetching in run_processor
This commit is contained in:
parent
8541f63762
commit
017363ecd5
|
@ -123,10 +123,10 @@ async def run_processor(request):
|
||||||
return
|
return
|
||||||
|
|
||||||
if request.instance and not request.instance.get('software'):
|
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:
|
if nodeinfo:
|
||||||
request.instance[nodeinfo] = nodeinfo.swname
|
request.instance['software'] = nodeinfo.swname
|
||||||
request.database.save()
|
request.database.save()
|
||||||
|
|
||||||
logging.verbose(f'New "{request.message.type}" from actor: {request.actor.id}')
|
logging.verbose(f'New "{request.message.type}" from actor: {request.actor.id}')
|
||||||
|
|
Loading…
Reference in a new issue