add: post image uploads (supporter)
This commit is contained in:
parent
ba1f8ef063
commit
70965298b5
18 changed files with 455 additions and 50 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue