summaryrefslogtreecommitdiffstats
path: root/server/src/api/comment.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/api/comment.rs
parent3a4973ad68562f9ccb4a9f4442333e0478bc7b04 (diff)
Rework imports
Diffstat (limited to 'server/src/api/comment.rs')
-rw-r--r--server/src/api/comment.rs39
1 files changed, 38 insertions, 1 deletions
diff --git a/server/src/api/comment.rs b/server/src/api/comment.rs
index 0660a52c..40f87ac9 100644
--- a/server/src/api/comment.rs
+++ b/server/src/api/comment.rs
@@ -1,4 +1,41 @@
-use super::*;
+use crate::{
+ api::{APIError, Oper, Perform},
+ apub::{ApubLikeableType, ApubObjectType},
+ db::{
+ comment::*,
+ comment_view::*,
+ community_view::*,
+ moderator::*,
+ post::*,
+ site_view::*,
+ user::*,
+ user_mention::*,
+ user_view::*,
+ Crud,
+ Likeable,
+ ListingType,
+ Saveable,
+ SortType,
+ },
+ extract_usernames,
+ naive_now,
+ remove_slurs,
+ send_email,
+ settings::Settings,
+ websocket::{
+ server::{JoinCommunityRoom, SendComment},
+ UserOperation,
+ WebsocketInfo,
+ },
+};
+use diesel::{
+ r2d2::{ConnectionManager, Pool},
+ PgConnection,
+};
+use failure::Error;
+use log::error;
+use serde::{Deserialize, Serialize};
+use std::str::FromStr;
#[derive(Serialize, Deserialize)]
pub struct CreateComment {