From e1f67d3eff8bcb95e2501db8acbaa4a77393a37b Mon Sep 17 00:00:00 2001 From: Vojta Svoboda Date: Mon, 21 Mar 2016 21:53:34 +0100 Subject: [PATCH] Load attachment thumbnail to template --- js/jquery.socialfeed.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/jquery.socialfeed.js b/js/jquery.socialfeed.js index 0c694bc..efd9f31 100644 --- a/js/jquery.socialfeed.js +++ b/js/jquery.socialfeed.js @@ -768,6 +768,9 @@ if (typeof Object.create !== 'function') { if (options.show_media && item.thumbnail !== undefined ) { post.attachment = ''; } + if (options.show_media && item.group && item.group.thumbnail !== "undefined" ) { + post.attachment_thumbnail = item.group.thumbnail.url; + } return post; } }