mirror of https://github.com/LemmyNet/lemmy.git
should be media_type
parent
97697aa413
commit
ed3e2e0d8c
|
@ -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?;
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue