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
|
@ -92,6 +92,10 @@ pub async fn create_request(
|
|||
}
|
||||
}
|
||||
|
||||
if req.mask_owner && !req.is_global {
|
||||
props.context.mask_owner = true;
|
||||
}
|
||||
|
||||
match data
|
||||
.create_question(props, drawings.iter().map(|x| x.to_vec()).collect())
|
||||
.await
|
||||
|
|
|
@ -790,6 +790,8 @@ pub struct CreateQuestion {
|
|||
pub receiver: String,
|
||||
#[serde(default)]
|
||||
pub community: String,
|
||||
#[serde(default)]
|
||||
pub mask_owner: bool,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue