diff --git a/crates/api_crud/src/post/create.rs b/crates/api_crud/src/post/create.rs index 8def026c2..c52cfaf80 100644 --- a/crates/api_crud/src/post/create.rs +++ b/crates/api_crud/src/post/create.rs @@ -133,7 +133,7 @@ pub async fn create_post( .url_content_type(metadata.content_type) .url(url) .body(body) - .alt_text(&data.alt_text.clone()) + .alt_text(data.alt_text.clone()) .community_id(data.community_id) .creator_id(local_user_view.person.id) .nsfw(data.nsfw) diff --git a/crates/api_crud/src/post/update.rs b/crates/api_crud/src/post/update.rs index 4e5abbdee..6db65dffe 100644 --- a/crates/api_crud/src/post/update.rs +++ b/crates/api_crud/src/post/update.rs @@ -126,7 +126,7 @@ pub async fn update_post( url, url_content_type: metadata_content_type, body: diesel_option_overwrite(body), - alt_text: diesel_option_overwrite(&data.alt_text.clone()), + alt_text: diesel_option_overwrite(data.alt_text.clone()), nsfw: data.nsfw, embed_title, embed_description,