mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-06-27 16:35:59 +00:00
feat: freeze unauthenticated media
This commit is contained in:
parent
70d7f77363
commit
66a14ac802
3 changed files with 57 additions and 11 deletions
|
@ -2227,7 +2227,7 @@ pub async fn get_content_route(
|
|||
file,
|
||||
}) = services()
|
||||
.media
|
||||
.get(services().globals.server_name(), &body.media_id)
|
||||
.get(services().globals.server_name(), &body.media_id, true)
|
||||
.await?
|
||||
{
|
||||
Ok(get_content::v1::Response::new(
|
||||
|
@ -2264,6 +2264,7 @@ pub async fn get_content_thumbnail_route(
|
|||
body.height
|
||||
.try_into()
|
||||
.map_err(|_| Error::BadRequest(ErrorKind::InvalidParam, "Width is invalid."))?,
|
||||
true,
|
||||
)
|
||||
.await?
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue