should be media_type

cleanup-request-rs
Felix Ableitner 2023-10-27 16:48:46 +02:00
parent 97697aa413
commit ed3e2e0d8c
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ async fn generate_pictrs_thumbnail(
}
}
// TODO: get rid of this by storing content type in db
// TODO: get rid of this by reading content type from db
#[tracing::instrument(skip_all)]
async fn is_image_content_type(client: &ClientWithMiddleware, url: &Url) -> Result<(), LemmyError> {
let response = client.get(url.as_str()).send().await?;

View File

@ -73,7 +73,7 @@ pub struct Page {
#[serde(rename_all = "camelCase")]
pub(crate) struct Link {
href: Url,
content_type: Option<String>,
media_type: Option<String>,
r#type: LinkType,
}