mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-28 14:51:02 +00:00
activitypub: allow more schemas for action's to
field
This commit is contained in:
parent
b30dfb85d4
commit
3b93b7c904
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ pub struct Action<O> {
|
|||
pub action_type: String,
|
||||
pub id: String,
|
||||
pub actor: String,
|
||||
pub to: Option<String>,
|
||||
pub to: Option<serde_json::Value>,
|
||||
pub object: Option<O>,
|
||||
}
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ async fn post_relay(
|
|||
jsonld_context: serde_json::Value::String("https://www.w3.org/ns/activitystreams".to_string()),
|
||||
action_type: "Accept".to_string(),
|
||||
actor: target.uri(),
|
||||
to: Some(endpoint.actor.id.clone()),
|
||||
to: Some(json!(endpoint.actor.id.clone())),
|
||||
id: action.id,
|
||||
object: Some(endpoint.payload),
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue