about summary refs log tree commit diff
path: root/kittybox-rs/src/micropub/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'kittybox-rs/src/micropub/mod.rs')
-rw-r--r--kittybox-rs/src/micropub/mod.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/kittybox-rs/src/micropub/mod.rs b/kittybox-rs/src/micropub/mod.rs
index 8550849..1fa442a 100644
--- a/kittybox-rs/src/micropub/mod.rs
+++ b/kittybox-rs/src/micropub/mod.rs
@@ -1,5 +1,5 @@
 use crate::database::{MicropubChannel, Storage, StorageError};
-use crate::indieauth::User;
+use crate::tokenauth::User;
 use crate::micropub::util::form_to_mf2_json;
 use axum::extract::{BodyStream, Query};
 use axum::headers::ContentType;
@@ -293,7 +293,7 @@ async fn background_processing<D: 'static + Storage>(
 
 // TODO actually save the post to the database and schedule post-processing
 pub(crate) async fn _post<D: 'static + Storage>(
-    user: crate::indieauth::User,
+    user: User,
     uid: String,
     mf2: serde_json::Value,
     db: D,
@@ -681,7 +681,7 @@ impl MicropubQuery {
 
 #[cfg(test)]
 mod tests {
-    use crate::{database::Storage, micropub::MicropubError};
+    use crate::{database::Storage, micropub::MicropubError, tokenauth::User};
     use hyper::body::HttpBody;
     use serde_json::json;
 
@@ -734,7 +734,7 @@ mod tests {
                 "content": ["Hello world!"]
             }
         });
-        let user = crate::indieauth::User::new(
+        let user = User::new(
             "https://localhost:8080/",
             "https://kittybox.fireburn.ru/",
             "profile",
@@ -763,7 +763,7 @@ mod tests {
                 "url": ["https://fireburn.ru/posts/hello"]
             }
         });
-        let user = crate::indieauth::User::new(
+        let user = User::new(
             "https://aaronparecki.com/",
             "https://kittybox.fireburn.ru/",
             "create update media",
@@ -790,7 +790,7 @@ mod tests {
                 "content": ["Hello world!"]
             }
         });
-        let user = crate::indieauth::User::new(
+        let user = User::new(
             "https://localhost:8080/",
             "https://kittybox.fireburn.ru/",
             "create",
@@ -817,7 +817,7 @@ mod tests {
             axum::extract::Query(super::MicropubQuery::source(
                 "https://aaronparecki.com/feeds/main",
             )),
-            crate::indieauth::User::new(
+            User::new(
                 "https://fireburn.ru/",
                 "https://quill.p3k.io/",
                 "create update media",