about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/micropub/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/micropub/mod.rs b/src/micropub/mod.rs
index 835457f..8f7ff90 100644
--- a/src/micropub/mod.rs
+++ b/src/micropub/mod.rs
@@ -569,6 +569,7 @@ pub(crate) async fn query<D: Storage, A: AuthBackend>(
             .into_response();
     }
 
+    // TODO: consider replacing by `user.me.authority()`?
     let user_domain = format!(
         "{}{}",
         user.me.host_str().unwrap(),
@@ -578,7 +579,7 @@ pub(crate) async fn query<D: Storage, A: AuthBackend>(
     );
     match query.q {
         QueryType::Config => {
-            let channels: Vec<MicropubChannel> = match db.get_channels(user.me.as_str()).await {
+            let channels: Vec<MicropubChannel> = match db.get_channels(&user_domain).await {
                 Ok(chans) => chans,
                 Err(err) => {
                     return MicropubError::new(