summaryrefslogtreecommitdiffstats
path: root/server/src/apub/private_message.rs
diff options
context:
space:
mode:
authorFelix <me@nutomic.com>2020-05-16 16:04:08 +0200
committerFelix <me@nutomic.com>2020-05-16 20:04:17 +0200
commit9e61c3be94c623b43b2e87ed060bfebc041d1eaa (patch)
treef622a2e429363febf43e021038c67ae8d55dfb1d /server/src/apub/private_message.rs
parent3a4973ad68562f9ccb4a9f4442333e0478bc7b04 (diff)
Rework imports
Diffstat (limited to 'server/src/apub/private_message.rs')
-rw-r--r--server/src/apub/private_message.rs26
1 files changed, 25 insertions, 1 deletions
diff --git a/server/src/apub/private_message.rs b/server/src/apub/private_message.rs
index 3fff75dc..a222b1fe 100644
--- a/server/src/apub/private_message.rs
+++ b/server/src/apub/private_message.rs
@@ -1,4 +1,28 @@
-use super::*;
+use crate::{
+ apub::{
+ activities::send_activity,
+ create_tombstone,
+ fetcher::get_or_fetch_and_upsert_remote_user,
+ ApubObjectType,
+ FromApub,
+ ToApub,
+ },
+ convert_datetime,
+ db::{
+ activity::insert_activity,
+ private_message::{PrivateMessage, PrivateMessageForm},
+ user::User_,
+ Crud,
+ },
+};
+use activitystreams::{
+ activity::{Create, Delete, Undo, Update},
+ context,
+ object::{kind::NoteType, properties::ObjectProperties, Note, Tombstone},
+};
+use actix_web::Result;
+use diesel::PgConnection;
+use failure::Error;
impl ToApub for PrivateMessage {
type Response = Note;