Include DM users in payload; fix permission query. + cargo fmt

This commit is contained in:
Paul Makles
2021-02-09 16:41:08 +00:00
parent 4c99d079e0
commit b0d07ec58f
6 changed files with 37 additions and 80 deletions

View File

@@ -16,9 +16,5 @@ pub async fn req(user: User, target: Ref) -> Result<JsonValue> {
Err(Error::LabelMe)?
}
Ok(json!(
target
.from(&user)
.with(perm)
))
Ok(json!(target.from(&user).with(perm)))
}