Fixing clones.

This commit is contained in:
Dessalines 2024-03-04 12:24:27 -05:00
parent b5ce51470a
commit eb65de3602
2 changed files with 2 additions and 2 deletions

View file

@ -133,7 +133,7 @@ pub async fn create_post(
.url_content_type(metadata.content_type) .url_content_type(metadata.content_type)
.url(url) .url(url)
.body(body) .body(body)
.alt_text(&data.alt_text.clone()) .alt_text(data.alt_text.clone())
.community_id(data.community_id) .community_id(data.community_id)
.creator_id(local_user_view.person.id) .creator_id(local_user_view.person.id)
.nsfw(data.nsfw) .nsfw(data.nsfw)

View file

@ -126,7 +126,7 @@ pub async fn update_post(
url, url,
url_content_type: metadata_content_type, url_content_type: metadata_content_type,
body: diesel_option_overwrite(body), 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, nsfw: data.nsfw,
embed_title, embed_title,
embed_description, embed_description,