add: post image uploads (supporter)

This commit is contained in:
trisua 2025-05-11 14:27:55 -04:00
parent ba1f8ef063
commit 70965298b5
18 changed files with 455 additions and 50 deletions

View file

@ -236,6 +236,8 @@ pub struct Post {
pub likes: isize,
pub dislikes: isize,
pub comment_count: usize,
/// IDs of all uploads linked to this post.
pub uploads: Vec<usize>,
}
impl Post {
@ -257,6 +259,7 @@ impl Post {
likes: 0,
dislikes: 0,
comment_count: 0,
uploads: Vec::new(),
}
}