From 818e2d45d316b1ab918a28482b73d1ea2519c27e Mon Sep 17 00:00:00 2001 From: briandennis Date: Sun, 18 Jun 2017 21:34:12 -0700 Subject: [PATCH] switch imgur link to path that has twitter card --- pages/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/index.js b/pages/index.js index 6fb17ec..1de88df 100644 --- a/pages/index.js +++ b/pages/index.js @@ -48,7 +48,8 @@ class Index extends React.Component { upload () { domtoimage.toBlob(document.getElementById('container')) .then(api.uploadImage) - .then(res => res.data.link) + .then(res => res.data.id) + .then(id => `http://i.imgur.com/${id}`) .then(console.log) }