fix: check profile privacy settings when viewing link to post

This commit is contained in:
trisua 2025-05-14 19:35:29 -04:00
parent 3925028d5b
commit bbb629336f
5 changed files with 26 additions and 10 deletions

View file

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