Defaulting to jpeg if reddit image extension is not present.
This commit is contained in:
parent
9ec9569ab2
commit
3a86f61835
|
@ -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