fix: added inbox and outbox to main app actor

This commit is contained in:
əlemi 2024-04-13 04:42:46 +02:00
parent 72774d01ed
commit 6614f63f56
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -13,6 +13,8 @@ pub async fn view(State(ctx): State<Context>) -> Result<JsonLD<serde_json::Value
.set_actor_type(Some(apb::ActorType::Application))
.set_name(Some("μpub"))
.set_summary(Some("micro social network, federated"))
.set_inbox(apb::Node::link(url!(ctx, "/inbox")))
.set_outbox(apb::Node::link(url!(ctx, "/outbox")))
.set_published(Some(ctx.app().created))
.set_public_key(apb::Node::object(
serde_json::Value::new_object()