[backend/well-known] Set the version field correctly in nodeinfo responses
This commit is contained in:
parent
07b3ad5bab
commit
acea67a298
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue