fix: check profile privacy settings when viewing link to post
This commit is contained in:
parent
3925028d5b
commit
bbb629336f
5 changed files with 26 additions and 10 deletions
|
@ -126,12 +126,12 @@ where
|
|||
let mut out = Vec::new();
|
||||
|
||||
while let Ok(Some(field)) = multipart.next_field().await {
|
||||
out.push(field.bytes().await.map_err(|_| {
|
||||
(
|
||||
StatusCode::BAD_REQUEST,
|
||||
"could not read field as bytes".to_string(),
|
||||
)
|
||||
})?);
|
||||
out.push(
|
||||
field
|
||||
.bytes()
|
||||
.await
|
||||
.map_err(|e| (StatusCode::BAD_REQUEST, e.to_string()))?,
|
||||
);
|
||||
}
|
||||
|
||||
out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue