Commit 24558e31 authored by Zachary Dunn's avatar Zachary Dunn

Add software metadata to nodeinfo document

parent 3975b50d
......@@ -3,7 +3,7 @@ name = "booth"
version = "0.1.0"
authors = ["Zachary Dunn <zdunn76@gmail.com>"]
description = "Booth.pub is a personal publishing platform using IndieWeb technologies"
homepage = "https://booth.pub"
homepage = "TDB"
repository = "https://gitlab.com/zdunn/booth"
edition = "2018"
......
......@@ -111,7 +111,7 @@ pub fn nodeinfo(site: State<Site>) -> Content<String> {
"name": env!("CARGO_PKG_NAME"),
"version": env!("CARGO_PKG_VERSION")
},
"protocols": [],
"protocols": ["webmention"],
"services": {
"inbound": [],
"outbound": []
......@@ -122,6 +122,13 @@ pub fn nodeinfo(site: State<Site>) -> Content<String> {
"total": 1,
},
"localPosts": utils::num_posts(&site)
},
"metadata": {
"nodeName": &site.name,
"software": {
"repo": env!("CARGO_PKG_REPOSITORY"),
"homepage": env!("CARGO_PKG_HOMEPAGE")
}
}
})
.to_string();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment