From 67b54449a1bbde257e9454419e7bb70ebc515c0f Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Thu, 14 Nov 2024 21:43:54 +0000 Subject: implement artwork upload --- src/comment.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comment.rs') diff --git a/src/comment.rs b/src/comment.rs index 55c4607..6aa3ee8 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -6,7 +6,7 @@ use crate::Result; #[derive(sqlx::FromRow)] pub struct Comment { /// id of the comment in the thread - id: Option, + comment_id: Option, /// text of the comment pub text: String, /// id of artwork thread comment is in @@ -21,7 +21,7 @@ pub struct Comment { impl Comment { pub fn id(&self) -> Option { - self.id + self.comment_id } pub fn created_at(&self) -> Option { -- cgit