Fix comment structuring (#113)

* Start recursive comments

* Update comment.html

* Fix move error

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
This commit is contained in:
robrobinbin
2021-02-10 19:48:51 +01:00
committed by GitHub
parent fee2cb1b56
commit 4a40e16277
4 changed files with 36 additions and 48 deletions

View File

@ -76,9 +76,14 @@ pub struct Post {
pub gallery: Vec<GalleryMedia>,
}
#[derive(Template)]
#[template(path = "comment.html", escape = "none")]
// Comment with content, post, score and data/time that it was posted
pub struct Comment {
pub id: String,
pub kind: String,
pub post_link: String,
pub post_author: String,
pub body: String,
pub author: Author,
pub score: String,