From debfb4035eab724c63b0e704e97dfa2cda6711dd Mon Sep 17 00:00:00 2001 From: John Carter Date: Mon, 25 Sep 2017 13:26:54 +0100 Subject: [PATCH] Add attachment_url var for template use. --- js/jquery.socialfeed.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/jquery.socialfeed.js b/js/jquery.socialfeed.js index 1f48d10..4d45ecc 100644 --- a/js/jquery.socialfeed.js +++ b/js/jquery.socialfeed.js @@ -283,6 +283,7 @@ if (typeof Object.create !== 'function') { if (element.entities.media && element.entities.media.length > 0) { var image_url = element.entities.media[0].media_url_https; if (image_url) { + post.attachment_url = image_url; post.attachment = ''; } }