[backend/well-known] Set the version field correctly in nodeinfo responses

This commit is contained in:
Laura Hausmann 2024-06-03 19:19:17 +02:00
parent 07b3ad5bab
commit acea67a298
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -38,7 +38,7 @@ public class NodeInfoController(IOptions<Config.InstanceSection> config, Databas
var result = new NodeInfoResponse var result = new NodeInfoResponse
{ {
Version = instance.Version, Version = Request.Path.Value?.EndsWith("2.1") ?? false ? "2.1" : "2.0",
Software = new NodeInfoResponse.NodeInfoSoftware Software = new NodeInfoResponse.NodeInfoSoftware
{ {
Version = instance.Version, Version = instance.Version,