From c5fddfba89fd2d8dd7f415248a8ed878ffdb1f10 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 25 Apr 2024 02:14:21 +0200 Subject: [PATCH] actor: fix jsonld @context Fixes Github issue #17 --- src/actor.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/actor.rs b/src/actor.rs index 49a82dc..505caa4 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -1,5 +1,6 @@ use std::sync::Arc; use deunicode::deunicode; +use serde_json::json; use sigh::{PublicKey, Key}; use crate::activitypub; @@ -121,7 +122,10 @@ impl Actor { pub fn as_activitypub(&self, pub_key: &PublicKey) -> activitypub::Actor { activitypub::Actor { - jsonld_context: serde_json::Value::String("https://www.w3.org/ns/activitystreams".to_string()), + jsonld_context: json!([ + "https://www.w3.org/ns/activitystreams", + "https://w3id.org/security/v1" + ]), actor_type: "Service".to_string(), id: self.uri(), name: Some(match &self.kind {