From 6df108254a2ae6516855b4556b2713f848e16490 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 6 Jun 2024 03:15:56 +0200 Subject: [PATCH] fix: url with trailing slash may help with verification? --- upub/routes/src/activitypub/application.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/upub/routes/src/activitypub/application.rs b/upub/routes/src/activitypub/application.rs index 99b572a..365e531 100644 --- a/upub/routes/src/activitypub/application.rs +++ b/upub/routes/src/activitypub/application.rs @@ -28,6 +28,7 @@ pub async fn view( .set_published(Some(ctx.actor().published)) .set_endpoints(apb::Node::Empty) .set_preferred_username(Some(ctx.domain())) + .set_url(apb::Node::link(upub::url!(ctx, "/"))) .set_public_key(apb::Node::object( apb::new() .set_id(Some(&upub::url!(ctx, "#main-key")))