add: drawings in questions
This commit is contained in:
parent
6be729de50
commit
16843a6ab8
28 changed files with 1181 additions and 32 deletions
|
@ -345,6 +345,9 @@ pub struct Question {
|
|||
/// The IP of the question creator for IP blocking and identifying anonymous users.
|
||||
#[serde(default)]
|
||||
pub ip: String,
|
||||
/// The IDs of all uploads which hold this question's drawings.
|
||||
#[serde(default)]
|
||||
pub drawings: Vec<usize>,
|
||||
}
|
||||
|
||||
impl Question {
|
||||
|
@ -369,6 +372,7 @@ impl Question {
|
|||
dislikes: 0,
|
||||
context: QuestionContext::default(),
|
||||
ip,
|
||||
drawings: Vec::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue