From ed3e2e0d8c42db73185a9273c0e3dfb5d6aad146 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 27 Oct 2023 16:48:46 +0200 Subject: [PATCH] should be media_type --- crates/api_common/src/request.rs | 2 +- crates/apub/src/protocol/objects/page.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/api_common/src/request.rs b/crates/api_common/src/request.rs index 1fe9a9a98..bc59dd91d 100644 --- a/crates/api_common/src/request.rs +++ b/crates/api_common/src/request.rs @@ -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?; diff --git a/crates/apub/src/protocol/objects/page.rs b/crates/apub/src/protocol/objects/page.rs index d84ee053a..0b5e6856c 100644 --- a/crates/apub/src/protocol/objects/page.rs +++ b/crates/apub/src/protocol/objects/page.rs @@ -73,7 +73,7 @@ pub struct Page { #[serde(rename_all = "camelCase")] pub(crate) struct Link { href: Url, - content_type: Option, + media_type: Option, r#type: LinkType, }