diff --git a/inc/teddit_api/handleSubreddit.js b/inc/teddit_api/handleSubreddit.js index 58c105a..8f50c9c 100644 --- a/inc/teddit_api/handleSubreddit.js +++ b/inc/teddit_api/handleSubreddit.js @@ -57,6 +57,9 @@ module.exports = function() { if(is_self_link) link.url = link.permalink + if(req.query.hasOwnProperty('full_thumbs')) + thumbnail = post_image + let enclosure = '' if(thumbnail != '') { let mime = '' @@ -68,11 +71,6 @@ module.exports = function() { enclosure = `` } - let image = '' - if(post_image != '') { - image = `${post_image}` - } - let append_desc_html = `
[link] [comments]` items += ` @@ -85,7 +83,6 @@ module.exports = function() { ${link.id} ${thumbnail} ${enclosure} - ${image} ${link.permalink} ${link.url}