Add "View all comments" and "Show parent comments" buttons when viewing a single thread. Closes #65 (#115)

* Start recursive comments

* Update comment.html

* Fix move error

* Comment improvements

* Fix merge

* Remove extra endif from post.html

* Fix post.html

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
This commit is contained in:
robrobinbin 2021-02-12 18:16:59 +01:00 committed by GitHub
parent 58ca085521
commit 809be42e01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 46 additions and 11 deletions

View file

@ -82,6 +82,8 @@ pub struct Post {
pub struct Comment {
pub id: String,
pub kind: String,
pub parent_id: String,
pub parent_kind: String,
pub post_link: String,
pub post_author: String,
pub body: String,
@ -90,6 +92,7 @@ pub struct Comment {
pub rel_time: String,
pub created: String,
pub replies: Vec<Comment>,
pub highlighted: bool,
}
#[derive(Default)]