From 72508f8e5ac5a7024ab792f9c10e1ce31fdade88 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Sun, 10 Jan 2016 12:29:56 +0100 Subject: [PATCH] fixes https://quitter.im/notice/46643 --- js/dom-functions.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/dom-functions.js b/js/dom-functions.js index 0bba3b5..dac1aef 100644 --- a/js/dom-functions.js +++ b/js/dom-functions.js @@ -2120,10 +2120,14 @@ function buildAttachmentHTML(attachments){ else if(this.width > 1000) { var img_url = this.large_thumb_url; } - // no thumbnails for small images - else { + // no thumbnails for small local images + else if (this.url.indexOf(window.siteInstanceURL) === 0) { var img_url = this.url; } + // small thumbnail for small remote images + else { + var img_url = this.thumb_url; + } attachment_html = attachment_html + ''; urlsToHide.push(window.siteInstanceURL + 'attachment/' + this.id); // hide this attachment url from the queet text