mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-12 18:58:00 +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
|
||||
|
||||
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}')
|
||||
|
|
Loading…
Reference in a new issue