diff options
author | Dessalines <tyhou13@gmx.com> | 2020-06-10 18:22:57 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-06-10 18:22:57 -0400 |
commit | 2fbd44c59db9c94f7cd2055550066f429a19154b (patch) | |
tree | 3a42c510222f874d010b62fe5bcbb62897386dec /server/src/api/post.rs | |
parent | bd26e4e9c1b146163ee839de0a45bb9354efd1f2 (diff) |
Adding pictrs thumbnail caching for urls and embeds.
Diffstat (limited to 'server/src/api/post.rs')
-rw-r--r-- | server/src/api/post.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/api/post.rs b/server/src/api/post.rs index 84ef89f1..0e8a17e7 100644 --- a/server/src/api/post.rs +++ b/server/src/api/post.rs @@ -118,7 +118,7 @@ impl Perform for Oper<CreatePost> { // 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_data(data.url.to_owned()); let post_form = PostForm { name: data.name.to_owned(), @@ -452,7 +452,7 @@ impl Perform for Oper<EditPost> { // 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_data(data.url.to_owned()); let post_form = PostForm { name: data.name.to_owned(), |