fixes #2488: Pool gallery has pools missing from the list

This commit is contained in:
r888888888
2015-08-13 11:46:09 -07:00
parent 76c65a8598
commit 86f0db5912
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ class PostPresenter < Presenter
return "Expunged"
end
if post.is_deleted? && options[:tags] !~ /status:(?:all|any|deleted|banned)/ && !options[:raw]
if !options[:show_deleted] && post.is_deleted? && options[:tags] !~ /status:(?:all|any|deleted|banned)/ && !options[:raw]
return ""
end

View File

@@ -17,7 +17,7 @@ module PostSetPresenters
pools.each do |pool|
if pool.cover_post_id
post = ::Post.find(pool.cover_post_id)
html << PostPresenter.preview(post, options.merge(:tags => @post_set.tag_string, :raw => @post_set.raw, :pool => pool))
html << PostPresenter.preview(post, options.merge(:tags => @post_set.tag_string, :raw => @post_set.raw, :pool => pool, :show_deleted => true))
html << "\n"
end
end