]> Untitled Git - lemmy.git/blobdiff - lemmy_api/src/comment.rs
Move websocket code into workspace (#107)
[lemmy.git] / lemmy_api / src / comment.rs
similarity index 98%
rename from src/api/comment.rs
rename to lemmy_api/src/comment.rs
index 69853c3e7e1bc37e4533b4b391599e47240e543b..5a78ba91404b16f8c7c06ee4805be0cff4cde1f9 100644 (file)
@@ -1,16 +1,13 @@
 use crate::{
-  api::{
-    check_community_ban,
-    get_post,
-    get_user_from_jwt,
-    get_user_from_jwt_opt,
-    is_mod_or_admin,
-    Perform,
-  },
-  apub::{ApubLikeableType, ApubObjectType},
-  LemmyContext,
+  check_community_ban,
+  get_post,
+  get_user_from_jwt,
+  get_user_from_jwt_opt,
+  is_mod_or_admin,
+  Perform,
 };
 use actix_web::web::Data;
+use lemmy_apub::{ApubLikeableType, ApubObjectType};
 use lemmy_db::{
   comment::*,
   comment_view::*,
@@ -24,12 +21,7 @@ use lemmy_db::{
   Saveable,
   SortType,
 };
-use lemmy_structs::{
-  blocking,
-  comment::*,
-  send_local_notifs,
-  websocket::{SendComment, UserOperation},
-};
+use lemmy_structs::{blocking, comment::*, send_local_notifs};
 use lemmy_utils::{
   apub::{make_apub_endpoint, EndpointType},
   utils::{remove_slurs, scrape_text_for_mentions},
@@ -37,6 +29,7 @@ use lemmy_utils::{
   ConnectionId,
   LemmyError,
 };
+use lemmy_websocket::{messages::SendComment, LemmyContext, UserOperation};
 use std::str::FromStr;
 
 #[async_trait::async_trait(?Send)]