summaryrefslogtreecommitdiffstats
path: root/server/src/api/post.rs
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-06-10 18:22:57 -0400
committerDessalines <tyhou13@gmx.com>2020-06-10 18:22:57 -0400
commit2fbd44c59db9c94f7cd2055550066f429a19154b (patch)
tree3a42c510222f874d010b62fe5bcbb62897386dec /server/src/api/post.rs
parentbd26e4e9c1b146163ee839de0a45bb9354efd1f2 (diff)
Adding pictrs thumbnail caching for urls and embeds.
Diffstat (limited to 'server/src/api/post.rs')
-rw-r--r--server/src/api/post.rs4
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(),