Threaded comments

This commit is contained in:
2018-11-05 19:05:36 +09:00
parent e74253df96
commit 08497f0c37
13 changed files with 109 additions and 217 deletions

View File

@ -21,11 +21,5 @@ func Get(ctx *aero.Context) string {
return ctx.Error(http.StatusNotFound, "Thread not found", err)
}
// Fetch posts
posts := thread.Posts()
// Sort posts
arn.SortPostsLatestLast(posts)
return ctx.HTML(components.Thread(thread, posts, user))
return ctx.HTML(components.Thread(thread, user))
}