Defaulting to jpeg if reddit image extension is not present.
This commit is contained in:
parent
34f7766496
commit
246ed1576f
|
@ -12,7 +12,7 @@ function redditImage(post) {
|
||||||
url: post.url,
|
url: post.url,
|
||||||
title: post.title,
|
title: post.title,
|
||||||
datetime: post.datetime,
|
datetime: post.datetime,
|
||||||
type: mime.lookup(post.url.split('/.')[0]),
|
type: mime.lookup(post.url.split('/.')[0]) || 'image/jpeg',
|
||||||
original: post
|
original: post
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue