summaryrefslogtreecommitdiff
path: root/src/public/admin.rs
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2023-02-14 19:28:10 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2023-02-14 19:28:10 -0500
commitf02524b59288d68e78a108e9c9e2ca4c7f662f07 (patch)
treedb0a7ad310a92442274d862c7fc5d9994d99eaa5 /src/public/admin.rs
parentfix seo (diff)
downloadxssbook-f02524b59288d68e78a108e9c9e2ca4c7f662f07.tar.gz
xssbook-f02524b59288d68e78a108e9c9e2ca4c7f662f07.tar.bz2
xssbook-f02524b59288d68e78a108e9c9e2ca4c7f662f07.zip
friends
Diffstat (limited to 'src/public/admin.rs')
-rw-r--r--src/public/admin.rs10
1 files changed, 8 insertions, 2 deletions
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!(
"<tr><td>{}</td><td>{}</td><td>{}</td><td>{}</td><td>{}</td></tr>",
- 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
));
}