From d575ef0bef7aee05639668ff460fe34587f4dc4e Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 22 Apr 2024 00:37:21 +0200 Subject: [PATCH] fix: add endpoints and preferred username to app --- src/routes/activitypub/application.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/activitypub/application.rs b/src/routes/activitypub/application.rs index d94befa1..451885ae 100644 --- a/src/routes/activitypub/application.rs +++ b/src/routes/activitypub/application.rs @@ -27,6 +27,8 @@ pub async fn view( .set_inbox(apb::Node::link(url!(ctx, "/inbox"))) .set_outbox(apb::Node::link(url!(ctx, "/outbox"))) .set_published(Some(ctx.app().created)) + .set_endpoints(apb::Node::Empty) + .set_preferred_username(Some(ctx.domain())) .set_public_key(apb::Node::object( serde_json::Value::new_object() .set_id(Some(&url!(ctx, "#main-key")))