]> Untitled Git - lemmy.git/blobdiff - lemmy_apub/src/inbox/community_inbox.rs
Move websocket code into workspace (#107)
[lemmy.git] / lemmy_apub / src / inbox / community_inbox.rs
similarity index 95%
rename from src/apub/inbox/community_inbox.rs
rename to lemmy_apub/src/inbox/community_inbox.rs
index 9dd010c3f09896e8286ff1b998b281ab0f5fa788..ee75fa005fa758cf75e3ed1e7f1a56dad2373054 100644 (file)
@@ -1,12 +1,9 @@
 use crate::{
-  apub::{
-    check_is_apub_id_valid,
-    extensions::signatures::verify,
-    fetcher::get_or_fetch_and_upsert_user,
-    insert_activity,
-    ActorType,
-  },
-  LemmyContext,
+  check_is_apub_id_valid,
+  extensions::signatures::verify,
+  fetcher::get_or_fetch_and_upsert_user,
+  insert_activity,
+  ActorType,
 };
 use activitystreams::{
   activity::{ActorAndObject, Follow, Undo},
@@ -22,6 +19,7 @@ use lemmy_db::{
 };
 use lemmy_structs::blocking;
 use lemmy_utils::{location_info, LemmyError};
+use lemmy_websocket::LemmyContext;
 use log::debug;
 use serde::{Deserialize, Serialize};
 use std::fmt::Debug;