diff options
author | Felix <me@nutomic.com> | 2020-05-16 16:04:08 +0200 |
---|---|---|
committer | Felix <me@nutomic.com> | 2020-05-16 20:04:17 +0200 |
commit | 9e61c3be94c623b43b2e87ed060bfebc041d1eaa (patch) | |
tree | f622a2e429363febf43e021038c67ae8d55dfb1d /server/src/apub/community.rs | |
parent | 3a4973ad68562f9ccb4a9f4442333e0478bc7b04 (diff) |
Rework imports
Diffstat (limited to 'server/src/apub/community.rs')
-rw-r--r-- | server/src/apub/community.rs | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/server/src/apub/community.rs b/server/src/apub/community.rs index f4e8848f..12ce2800 100644 --- a/server/src/apub/community.rs +++ b/server/src/apub/community.rs @@ -1,4 +1,42 @@ -use super::*; +use crate::{ + apub::{ + activities::{populate_object_props, send_activity}, + create_apub_response, + create_apub_tombstone_response, + create_tombstone, + extensions::{group_extensions::GroupExtension, signatures::PublicKey}, + fetcher::get_or_fetch_and_upsert_remote_user, + get_shared_inbox, + ActorType, + FromApub, + GroupExt, + ToApub, + }, + convert_datetime, + db::{ + activity::insert_activity, + community::{Community, CommunityForm}, + community_view::{CommunityFollowerView, CommunityModeratorView}, + user::User_, + }, + naive_now, + routes::DbPoolParam, +}; +use activitystreams::{ + activity::{Accept, Delete, Follow, Remove, Undo}, + actor::{kind::GroupType, properties::ApActorProperties, Group}, + collection::UnorderedCollection, + context, + endpoint::EndpointProperties, + ext::Extensible, + object::{properties::ObjectProperties, Tombstone}, + BaseBox, +}; +use actix_web::{body::Body, web::Path, HttpResponse, Result}; +use diesel::PgConnection; +use failure::Error; +use itertools::Itertools; +use serde::Deserialize; #[derive(Deserialize)] pub struct CommunityQuery { |