summaryrefslogtreecommitdiffstats
path: root/server/src/apub/community.rs
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-05-16 21:09:26 -0400
committerDessalines <tyhou13@gmx.com>2020-05-16 21:09:26 -0400
commitf15c3b4e1e5808f9b1153b03ed87ed64a9851ce5 (patch)
treed630db482b06ddaed40d907e92159d2dc7cd292e /server/src/apub/community.rs
parent940dc73f280742e553395d6a56eaca015a234b3a (diff)
parent9e61c3be94c623b43b2e87ed060bfebc041d1eaa (diff)
Merge branch 'yerba_rework-imports' into federation
Diffstat (limited to 'server/src/apub/community.rs')
-rw-r--r--server/src/apub/community.rs40
1 files changed, 39 insertions, 1 deletions
diff --git a/server/src/apub/community.rs b/server/src/apub/community.rs
index d8ea86c7..d91cb4ba 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 {