From d318ccb7828d9235ef3535bb483e4bfefd8d09ff Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 21 Mar 2024 19:32:07 +0100 Subject: [PATCH] fix: ld_context to all --- src/activitypub/mod.rs | 1 + src/activitypub/user.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/activitypub/mod.rs b/src/activitypub/mod.rs index 3c2ea7f7..195ec0e6 100644 --- a/src/activitypub/mod.rs +++ b/src/activitypub/mod.rs @@ -47,6 +47,7 @@ pub async fn view(State(ctx): State) -> Result, .set_summary(Some("micro social network, federated")) .set_inbox(Node::link(url!(ctx, "/inbox"))) .set_outbox(Node::link(url!(ctx, "/outbox"))) + .ld_context() )) } diff --git a/src/activitypub/user.rs b/src/activitypub/user.rs index b0df2d4a..366dc444 100644 --- a/src/activitypub/user.rs +++ b/src/activitypub/user.rs @@ -64,6 +64,7 @@ pub async fn outbox( .set_part_of(Node::link(url!(ctx, "/users/{id}/outbox"))) .set_next(Node::link(url!(ctx, "/users/{id}/outbox?page=true&max_id={next}"))) .set_ordered_items(Node::array(items)) + .ld_context() )) }, } @@ -74,6 +75,7 @@ pub async fn outbox( .set_id(Some(&url!(ctx, "/users/{id}/outbox"))) .set_collection_type(Some(CollectionType::OrderedCollection)) .set_first(Node::link(url!(ctx, "/users/{id}/outbox?page=true"))) + .ld_context() )) } }