Defaulting to jpeg if reddit image extension is not present.

This commit is contained in:
ThePendulum 2018-07-07 04:12:16 +02:00
parent 9ec9569ab2
commit 3a86f61835
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function redditImage(post) {
url: post.url,
title: post.title,
datetime: post.datetime,
type: mime.lookup(post.url.split('/.')[0]),
type: mime.lookup(post.url.split('/.')[0]) || 'image/jpeg',
original: post
}]
});