Skip to content

Commit

Permalink
set full picture as embed thumbnail for imgur reddit posts
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgauthier committed Jan 26, 2019
1 parent 0f2dac8 commit d538f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/reddit/RedditModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class RedditModule {
else {
re.setThumbnail(post.spoiler ?
SPOILER_THUMBNAIL_URL :
post.domain === 'i.redd.it' ? post.url :
['i.redd.it', 'i.imgur.com'].includes(post.domain) ? post.url :
post.thumbnail === 'default' ? LINK_THUMBNAIL_URL : post.thumbnail
);
re.setDescription(`🔺 ${StringUtil.plural(post.score, 'point', '`')}, ${StringUtil.plural(post.num_comments, 'comment', '`')} 💬`);
Expand Down

0 comments on commit d538f55

Please sign in to comment.