Fix "Replace X" images being loaded on posts being inserted into catalog.

Fixes bug from 9cee88ce3a9676adb999b6fc2536716a7e8debfb.
This commit is contained in:
ccd0 2016-09-25 23:18:23 -07:00
parent f25f192627
commit 8f216f59b0

View File

@ -57,6 +57,7 @@ ImageLoader =
type = if (match = url.match(/\.([^.]+)$/)[1].toUpperCase()) is 'JPEG' then 'JPG' else match
replace = Conf["Replace #{type}"] and !/spoiler/.test(thumb.src or thumb.dataset.src)
return unless replace or Conf['prefetch']
return if $.hasClass doc, 'catalog-mode'
return unless [post, post.clones...].some (clone) -> doc.contains clone.nodes.root
file.isPrefetched = true
if file.videoThumb