summaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/database')
-rw-r--r--src/database/posts.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/database/posts.rs b/src/database/posts.rs
index 7da3bf0..c33e7e7 100644
--- a/src/database/posts.rs
+++ b/src/database/posts.rs
@@ -31,7 +31,6 @@ fn post_from_row(row: &Row) -> Result<Post, rusqlite::Error> {
let comments = comments::get_comments_page(0, post_id).unwrap_or_else(|_| Vec::new());
let likes = likes::get_like_count(post_id).unwrap_or(None).unwrap_or(0);
- let liked = likes::get_liked(user_id, post_id).unwrap_or(false);
Ok(Post {
post_id,
@@ -39,7 +38,7 @@ fn post_from_row(row: &Row) -> Result<Post, rusqlite::Error> {
content,
date,
likes,
- liked,
+ liked: false,
comments,
})
}