diff options
author | Felix <me@nutomic.com> | 2020-05-18 18:15:26 +0200 |
---|---|---|
committer | Felix <me@nutomic.com> | 2020-05-18 18:15:26 +0200 |
commit | d1aca27126672f72d18b9749507a29040f4bfdd3 (patch) | |
tree | 5a2aacb4222a7e04f8e3cfbb203ad0d90198f1b5 /server/src/apub/mod.rs | |
parent | f15c3b4e1e5808f9b1153b03ed87ed64a9851ce5 (diff) |
Use activitystreams-ext
Diffstat (limited to 'server/src/apub/mod.rs')
-rw-r--r-- | server/src/apub/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/apub/mod.rs b/server/src/apub/mod.rs index 3b087206..805e6a0c 100644 --- a/server/src/apub/mod.rs +++ b/server/src/apub/mod.rs @@ -25,9 +25,9 @@ use crate::{ use activitystreams::{ activity::Follow, actor::{properties::ApActorProperties, Group, Person}, - ext::Ext, object::{Page, Tombstone}, }; +use activitystreams_ext::{Ext1, Ext2, Ext3}; use actix_web::{body::Body, HttpResponse, Result}; use chrono::NaiveDateTime; use diesel::PgConnection; @@ -37,9 +37,9 @@ use log::debug; use serde::Serialize; use url::Url; -type GroupExt = Ext<Ext<Ext<Group, GroupExtension>, ApActorProperties>, PublicKeyExtension>; -type PersonExt = Ext<Ext<Person, ApActorProperties>, PublicKeyExtension>; -type PageExt = Ext<Page, PageExtension>; +type GroupExt = Ext3<Group, GroupExtension, ApActorProperties, PublicKeyExtension>; +type PersonExt = Ext2<Person, ApActorProperties, PublicKeyExtension>; +type PageExt = Ext1<Page, PageExtension>; pub static APUB_JSON_CONTENT_TYPE: &str = "application/activity+json"; |