Followers listing

And clean up models functions a bit
This commit is contained in:
Bat
2018-05-13 12:53:58 +01:00
parent 601fe7cf4f
commit c6b2560eb0
12 changed files with 84 additions and 20 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ use utils;
fn details(blog: String, slug: String, conn: DbConn, user: Option<User>) -> Template {
let blog = Blog::find_by_actor_id(&*conn, blog).unwrap();
let post = Post::find_by_slug(&*conn, slug).unwrap();
let comments = Comment::for_post(&*conn, post.id);
let comments = Comment::find_by_post(&*conn, post.id);
Template::render("posts/details", json!({
"post": post,
"blog": blog,