fixes #2488: Pool gallery has pools missing from the list
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user