fix nodeinfo 2.0

This commit is contained in:
Nicolas Constant 2020-07-07 02:57:25 -04:00
parent 55e04331a0
commit 24b6061b16
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688

View file

@ -57,14 +57,19 @@ namespace BirdsiteLive.Controllers
}, },
software = new Software() software = new Software()
{ {
name = "BirdsiteLive", name = "birdsitelive",
version = "0.1.0" version = "0.1.0"
}, },
protocols = new [] protocols = new []
{ {
"activitypub" "activitypub"
}, },
openRegistrations = false openRegistrations = false,
services = new Services()
{
inbound = new object[0],
outbound = new object[0]
}
}; };
return new JsonResult(nodeInfo); return new JsonResult(nodeInfo);
@ -164,7 +169,7 @@ namespace BirdsiteLive.Controllers
public Usage usage { get; set; } public Usage usage { get; set; }
public bool openRegistrations { get; set; } public bool openRegistrations { get; set; }
public Services services { get; set; } public Services services { get; set; }
public object metadata { get; set; } //public object metadata { get; set; }
} }
public class Services public class Services