add: ability to mask your account when creating a question
This commit is contained in:
parent
973373426a
commit
0634819278
11 changed files with 125 additions and 79 deletions
|
@ -381,6 +381,9 @@ impl Question {
|
|||
pub struct QuestionContext {
|
||||
#[serde(default)]
|
||||
pub is_nsfw: bool,
|
||||
/// If the owner is shown as anonymous in the UI.
|
||||
#[serde(default)]
|
||||
pub mask_owner: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue