about summary refs log tree commit diff
path: root/kittybox-rs/src/frontend/mod.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-07-27 11:14:04 +0300
committerVika <vika@fireburn.ru>2022-07-27 11:14:04 +0300
commitd47c536f973f48d35081c4dbbfbd2b13394d9aa7 (patch)
treec5bcef3ffe70eff52faff026f73338b97cb93695 /kittybox-rs/src/frontend/mod.rs
parente88b656a7bd4e87d431249b37db75dec5ecc4e85 (diff)
downloadkittybox-d47c536f973f48d35081c4dbbfbd2b13394d9aa7.tar.zst
kittybox-templates: split out MF2 rendering and get rid of log crate
Kittybox now uses tracing instead of log. Why would I keep an
unneccesary dependency in my Cargo.lock?
Diffstat (limited to 'kittybox-rs/src/frontend/mod.rs')
-rw-r--r--kittybox-rs/src/frontend/mod.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/kittybox-rs/src/frontend/mod.rs b/kittybox-rs/src/frontend/mod.rs
index bc9925f..00d3ba6 100644
--- a/kittybox-rs/src/frontend/mod.rs
+++ b/kittybox-rs/src/frontend/mod.rs
@@ -14,8 +14,6 @@ pub mod onboarding;
 
 use kittybox_templates::{Entry, ErrorPage, Feed, MainPage, Template, VCard, POSTS_PER_PAGE};
 
-pub use kittybox_util::IndiewebEndpoints;
-
 #[derive(Debug, Deserialize)]
 pub struct QueryParams {
     after: Option<String>,
@@ -143,7 +141,6 @@ pub async fn homepage<D: Storage>(
                 Template {
                     title: &blogname,
                     blog_name: &blogname,
-                    endpoints: None, // XXX this will be deprecated soon anyway
                     feeds: channels,
                     user,
                     content: MainPage {
@@ -182,7 +179,6 @@ pub async fn homepage<D: Storage>(
                     Template {
                         title: &blogname,
                         blog_name: &blogname,
-                        endpoints: None, // XXX this will be deprecated soon anyway
                         feeds: channels,
                         user,
                         content: ErrorPage {
@@ -228,7 +224,6 @@ pub async fn catchall<D: Storage>(
                 Template {
                     title: &blogname,
                     blog_name: &blogname,
-                    endpoints: None, // XXX this will be deprecated soon anyway
                     feeds: channels,
                     user,
                     content: match post.pointer("/type/0").and_then(|i| i.as_str()) {
@@ -258,7 +253,6 @@ pub async fn catchall<D: Storage>(
                 Template {
                     title: &blogname,
                     blog_name: &blogname,
-                    endpoints: None,
                     feeds: channels,
                     user,
                     content: ErrorPage {