Revert change to gallery condition.

Thumbnails should not be excluded from the gallery unless they were
already deleted when we loaded the page.
This commit is contained in:
ccd0 2015-02-06 10:03:25 -08:00
parent 928955021f
commit 1aba932f8b

View File

@ -79,9 +79,8 @@ Gallery =
$.on d, 'keydown', cb.keybinds
$.off d, 'keydown', Keybinds.keydown if Conf['Keybinds']
for file in $$ '.post .file'
for file in $$ '.post .file' when !$ '.fileDeletedRes, .fileDeleted', file
post = Get.postFromNode file
continue if !post.file or post.file.isDead
Gallery.generateThumb post
# If no image to open is given, pick image we have scrolled to.
if !image and Gallery.fullIDs[post.fullID]