summaryrefslogtreecommitdiffstats
path: root/server/src/api/comment.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/api/comment.rs
parent940dc73f280742e553395d6a56eaca015a234b3a (diff)
parent9e61c3be94c623b43b2e87ed060bfebc041d1eaa (diff)
Merge branch 'yerba_rework-imports' into federation
Diffstat (limited to 'server/src/api/comment.rs')
-rw-r--r--server/src/api/comment.rs40
1 files changed, 39 insertions, 1 deletions
diff --git a/server/src/api/comment.rs b/server/src/api/comment.rs
index f469b462..369cba5c 100644
--- a/server/src/api/comment.rs
+++ b/server/src/api/comment.rs
@@ -1,4 +1,42 @@
-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,
+ },
+ naive_now,
+ remove_slurs,
+ scrape_text_for_mentions,
+ send_email,
+ settings::Settings,
+ websocket::{
+ server::{JoinCommunityRoom, SendComment},
+ UserOperation,
+ WebsocketInfo,
+ },
+ MentionData,
+};
+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 {