don't show clones or hidden posts in the gallery
This commit is contained in:
parent
cbee0b96c1
commit
d87606d3dd
@ -77,7 +77,7 @@ Gallery =
|
|||||||
nodes.current.parentElement.scrollTop = 0
|
nodes.current.parentElement.scrollTop = 0
|
||||||
|
|
||||||
Gallery.cb.open.call if image
|
Gallery.cb.open.call if image
|
||||||
$ "[href='#{image.href}']", nodes.thumbs
|
$("[href='#{image.href}']", nodes.thumbs) or Gallery.images[0]
|
||||||
else
|
else
|
||||||
Gallery.images[0]
|
Gallery.images[0]
|
||||||
|
|
||||||
@ -86,6 +86,7 @@ Gallery =
|
|||||||
|
|
||||||
generateThumb: (file) ->
|
generateThumb: (file) ->
|
||||||
post = Get.postFromNode file
|
post = Get.postFromNode file
|
||||||
|
return if post.isClone or post.isHidden
|
||||||
return unless post.file and (post.file.isImage or post.file.isVideo or Conf['PDF in Gallery'])
|
return unless post.file and (post.file.isImage or post.file.isVideo or Conf['PDF in Gallery'])
|
||||||
return if Gallery.fullIDs[post.fullID]
|
return if Gallery.fullIDs[post.fullID]
|
||||||
Gallery.fullIDs[post.fullID] = true
|
Gallery.fullIDs[post.fullID] = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user