Defaulting to jpeg if reddit image extension is not present.

This commit is contained in:
DebaucheryLibrarian 2024-09-11 05:16:57 +02:00
parent 34f7766496
commit 246ed1576f
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
}]
});