diff options
Diffstat (limited to 'src/micropub/mod.rs')
-rw-r--r-- | src/micropub/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/micropub/mod.rs b/src/micropub/mod.rs index 8f7ff90..74f53a0 100644 --- a/src/micropub/mod.rs +++ b/src/micropub/mod.rs @@ -292,7 +292,7 @@ pub(crate) async fn _post<D: 'static + Storage>( ); // Save the post tracing::debug!("Saving post to database..."); - db.put_post(&mf2, &user_domain).await?; + db.put_post(&mf2, &user.me).await?; let mut channels = mf2["properties"]["channel"] .as_array() @@ -579,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_domain).await { + let channels: Vec<MicropubChannel> = match db.get_channels(&user.me).await { Ok(chans) => chans, Err(err) => { return MicropubError::new( @@ -636,7 +636,7 @@ pub(crate) async fn query<D: Storage, A: AuthBackend>( } } } - QueryType::Channel => match db.get_channels(&user_domain).await { + QueryType::Channel => match db.get_channels(&user.me).await { Ok(chans) => axum::response::Json(json!({ "channels": chans })).into_response(), Err(err) => MicropubError::new( ErrorType::InternalServerError, |