about summary refs log tree commit diff
path: root/src/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/mod.rs2
-rw-r--r--src/frontend/onboarding.rs7
2 files changed, 1 insertions, 8 deletions
diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs
index 81a03ed..4120b55 100644
--- a/src/frontend/mod.rs
+++ b/src/frontend/mod.rs
@@ -192,7 +192,7 @@ async fn get_post_from_database<S: Storage>(
         .await
     {
         Ok(result) => match result {
-            Some((post, cursor)) => match filter_post(post, user.as_deref()) {
+            Some((post, cursor)) => match filter_post(post, user) {
                 Some(post) => Ok((post, cursor)),
                 None => {
                     // TODO: Authentication
diff --git a/src/frontend/onboarding.rs b/src/frontend/onboarding.rs
index 9f3f36b..be1669f 100644
--- a/src/frontend/onboarding.rs
+++ b/src/frontend/onboarding.rs
@@ -75,13 +75,6 @@ async fn onboard<D: Storage + 'static>(
     }
 
     tracing::debug!("Setting settings...");
-    let user_domain = format!(
-        "{}{}",
-        user.me.host_str().unwrap(),
-        user.me.port()
-            .map(|port| format!(":{}", port))
-            .unwrap_or_default()
-    );
     db.set_setting::<settings::SiteName>(&user.me, data.blog_name.to_owned())
         .await
         .map_err(FrontendError::from)?;