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