add: ability to mask your account when creating a question

This commit is contained in:
trisua 2025-07-01 14:50:19 -04:00
parent 973373426a
commit 0634819278
11 changed files with 125 additions and 79 deletions

View file

@ -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

View file

@ -790,6 +790,8 @@ pub struct CreateQuestion {
pub receiver: String,
#[serde(default)]
pub community: String,
#[serde(default)]
pub mask_owner: bool,
}
#[derive(Deserialize)]