forked from jmug/stoatchat
Include DM users in payload; fix permission query. + cargo fmt
This commit is contained in:
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user