From 0f1461f7e507d6607760e9a3e6061dd18e9f7ad2 Mon Sep 17 00:00:00 2001 From: Mark Taiwan Date: Wed, 28 Jan 2015 23:29:15 +0800 Subject: [PATCH] Thumbnail file extension fix Fix thumbnail images sometimes using `.jpeg` file extension, resulting in 404. --- js/post-hover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/post-hover.js b/js/post-hover.js index 4f4e7448..fab3a45d 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -212,7 +212,7 @@ onready(function(){ if (this.isImage && !this.isSpoiler) { // video files uses jpg for thumbnail - if (this.ext === '.webm' || this.ext === '.mp4') this.ext = '.jpg'; + if (this.ext === '.webm' || this.ext === '.mp4' || this.ext === '.jpeg') this.ext = '.jpg'; thumb_url = '/'+ board +'/thumb/' + this.tim + this.ext; } else { thumb_url = (this.isSpoiler) ? '/static/spoiler.png' : '/static/file.png';