From f02524b59288d68e78a108e9c9e2ca4c7f662f07 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Tue, 14 Feb 2023 19:28:10 -0500 Subject: friends --- src/public/admin.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/public/admin.rs') diff --git a/src/public/admin.rs b/src/public/admin.rs index 25941f1..bf0a155 100644 --- a/src/public/admin.rs +++ b/src/public/admin.rs @@ -5,7 +5,9 @@ use tokio::sync::Mutex; use crate::{ console::sanatize, - types::{http::ResponseCode, post::Post, session::Session, user::User, comment::Comment, like::Like}, + types::{ + comment::Comment, http::ResponseCode, like::Like, post::Post, session::Session, user::User, + }, }; lazy_static! { @@ -141,7 +143,11 @@ pub fn generate_comments() -> Response { for comment in comments { html.push_str(&format!( "{}{}{}{}{}", - comment.comment_id, comment.user_id, comment.post_id, sanatize(&comment.content), comment.date + comment.comment_id, + comment.user_id, + comment.post_id, + sanatize(&comment.content), + comment.date )); } -- cgit v1.2.3-freya