]> Untitled Git - lemmy.git/blobdiff - lemmy_apub/src/fetcher.rs
Move websocket code into workspace (#107)
[lemmy.git] / lemmy_apub / src / fetcher.rs
similarity index 98%
rename from src/apub/fetcher.rs
rename to lemmy_apub/src/fetcher.rs
index 5d772f062b66c271ce53b282d8b30d86c2911c9c..4ce4082cdcd4cf6c5bba57b5b919be8e506b77d4 100644 (file)
@@ -1,15 +1,11 @@
 use crate::{
-  apub::{
-    check_is_apub_id_valid,
-    ActorType,
-    FromApub,
-    GroupExt,
-    PageExt,
-    PersonExt,
-    APUB_JSON_CONTENT_TYPE,
-  },
-  request::{retry, RecvError},
-  LemmyContext,
+  check_is_apub_id_valid,
+  ActorType,
+  FromApub,
+  GroupExt,
+  PageExt,
+  PersonExt,
+  APUB_JSON_CONTENT_TYPE,
 };
 use activitystreams::{base::BaseExt, collection::OrderedCollection, object::Note, prelude::*};
 use anyhow::{anyhow, Context};
@@ -30,7 +26,13 @@ use lemmy_db::{
   SearchType,
 };
 use lemmy_structs::{blocking, site::SearchResponse};
-use lemmy_utils::{apub::get_apub_protocol_string, location_info, LemmyError};
+use lemmy_utils::{
+  apub::get_apub_protocol_string,
+  location_info,
+  request::{retry, RecvError},
+  LemmyError,
+};
+use lemmy_websocket::LemmyContext;
 use log::debug;
 use reqwest::Client;
 use serde::Deserialize;