X-Git-Url: http://these/git/?a=blobdiff_plain;f=server%2Fsrc%2Fapi%2Fpost.rs;fp=server%2Fsrc%2Fapi%2Fpost.rs;h=420bef1f6211e648fe449b1f876c7a8e94d22c27;hb=dc94e58cbf7e7de10d97331a3056380a3416e0b0;hp=9bbde791977b8f4f16b2010b85a66616f311473b;hpb=fd6a040568239d2e6949394fdc0ce0f7ac70275c;p=lemmy.git diff --git a/server/src/api/post.rs b/server/src/api/post.rs index 9bbde791..420bef1f 100644 --- a/server/src/api/post.rs +++ b/server/src/api/post.rs @@ -17,7 +17,7 @@ use crate::{ Saveable, SortType, }, - fetch_iframely_and_pictshare_data, + fetch_iframely_and_pictrs_data, naive_now, slur_check, slurs_vec_to_str, @@ -152,9 +152,9 @@ impl Perform for Oper { return Err(APIError::err("site_ban").into()); } - // Fetch Iframely and Pictshare cached image - let (iframely_title, iframely_description, iframely_html, pictshare_thumbnail) = - fetch_iframely_and_pictshare_data(data.url.to_owned()); + // Fetch Iframely and pictrs cached image + let (iframely_title, iframely_description, iframely_html, pictrs_thumbnail) = + fetch_iframely_and_pictrs_data(data.url.to_owned()); let post_form = PostForm { name: data.name.to_owned(), @@ -171,7 +171,7 @@ impl Perform for Oper { embed_title: iframely_title, embed_description: iframely_description, embed_html: iframely_html, - thumbnail_url: pictshare_thumbnail, + thumbnail_url: pictrs_thumbnail, ap_id: "changeme".into(), local: true, published: None, @@ -507,9 +507,9 @@ impl Perform for Oper { return Err(APIError::err("site_ban").into()); } - // Fetch Iframely and Pictshare cached image - let (iframely_title, iframely_description, iframely_html, pictshare_thumbnail) = - fetch_iframely_and_pictshare_data(data.url.to_owned()); + // Fetch Iframely and Pictrs cached image + let (iframely_title, iframely_description, iframely_html, pictrs_thumbnail) = + fetch_iframely_and_pictrs_data(data.url.to_owned()); let read_post = Post::read(&conn, data.edit_id)?; @@ -528,7 +528,7 @@ impl Perform for Oper { embed_title: iframely_title, embed_description: iframely_description, embed_html: iframely_html, - thumbnail_url: pictshare_thumbnail, + thumbnail_url: pictrs_thumbnail, ap_id: read_post.ap_id, local: read_post.local, published: None,