fix: add endpoints and preferred username to app

This commit is contained in:
əlemi 2024-04-22 00:37:21 +02:00
parent e8dd15f8bd
commit d575ef0bef
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -27,6 +27,8 @@ pub async fn view(
.set_inbox(apb::Node::link(url!(ctx, "/inbox"))) .set_inbox(apb::Node::link(url!(ctx, "/inbox")))
.set_outbox(apb::Node::link(url!(ctx, "/outbox"))) .set_outbox(apb::Node::link(url!(ctx, "/outbox")))
.set_published(Some(ctx.app().created)) .set_published(Some(ctx.app().created))
.set_endpoints(apb::Node::Empty)
.set_preferred_username(Some(ctx.domain()))
.set_public_key(apb::Node::object( .set_public_key(apb::Node::object(
serde_json::Value::new_object() serde_json::Value::new_object()
.set_id(Some(&url!(ctx, "#main-key"))) .set_id(Some(&url!(ctx, "#main-key")))