From 4790074c30ac7864e49d85e9ce48b065afed48b5 Mon Sep 17 00:00:00 2001 From: teddit Date: Sat, 27 Mar 2021 16:58:56 +0100 Subject: [PATCH] add option to show full post images in the rss feeds with full_thumbs query --- inc/teddit_api/handleSubreddit.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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}