mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-24 21:11:00 +00:00
parent
4efa1bffcc
commit
c5fddfba89
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use deunicode::deunicode;
|
use deunicode::deunicode;
|
||||||
|
use serde_json::json;
|
||||||
use sigh::{PublicKey, Key};
|
use sigh::{PublicKey, Key};
|
||||||
|
|
||||||
use crate::activitypub;
|
use crate::activitypub;
|
||||||
|
@ -121,7 +122,10 @@ impl Actor {
|
||||||
|
|
||||||
pub fn as_activitypub(&self, pub_key: &PublicKey) -> activitypub::Actor {
|
pub fn as_activitypub(&self, pub_key: &PublicKey) -> activitypub::Actor {
|
||||||
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(),
|
actor_type: "Service".to_string(),
|
||||||
id: self.uri(),
|
id: self.uri(),
|
||||||
name: Some(match &self.kind {
|
name: Some(match &self.kind {
|
||||||
|
|
Loading…
Reference in a new issue