diff --git a/crates/api_common/src/request.rs b/crates/api_common/src/request.rs index 929f26bac..9b8821fff 100644 --- a/crates/api_common/src/request.rs +++ b/crates/api_common/src/request.rs @@ -153,7 +153,6 @@ pub fn generate_post_link_metadata( fn extract_opengraph_data(html_bytes: &[u8], url: &Url) -> LemmyResult { let html = String::from_utf8_lossy(html_bytes); - let mut page = HTML::from_string(html.to_string(), None)?; // If the web page specifies that it isn't actually UTF-8, re-decode the received bytes with the diff --git a/crates/api_crud/src/post/update.rs b/crates/api_crud/src/post/update.rs index 5fc28e883..034108d8e 100644 --- a/crates/api_crud/src/post/update.rs +++ b/crates/api_crud/src/post/update.rs @@ -85,7 +85,6 @@ pub async fn update_post( Err(LemmyErrorType::NoPostEditAllowed)? } - let language_id = data.language_id; CommunityLanguage::is_allowed_community_language( &mut context.pool(),