Skip to content

Commit

Permalink
Merge b37f901 into 586e171
Browse files Browse the repository at this point in the history
  • Loading branch information
d00rman committed Dec 13, 2018
2 parents 586e171 + b37f901 commit 8edffdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v1/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ class Feed extends BaseFeed {
highQualityThumbRequest
).then((result) => {
const thumbRes = result[1].body;
result[0].body = result[0].body || {};
if (thumbRes.items && thumbRes.items.length && thumbRes.items[0].thumbnail) {
const newThumb = thumbRes.items[0].thumbnail;
newThumb.source = newThumb.source.replace(/^http:/, 'https:');
result[0].body.tfa = result[0].body.tfa || {};
result[0].body.tfa.thumbnail = newThumb;
if (thumbRes.items[0].original) {
const newOriginal = thumbRes.items[0].original;
Expand Down

0 comments on commit 8edffdc

Please sign in to comment.