Remove redundant undeleted pool checks
Post#pools already excludes deleted pools.
This commit is contained in:
@@ -159,7 +159,7 @@ class PostPresenter < Presenter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def has_nav_links?(template)
|
def has_nav_links?(template)
|
||||||
(CurrentUser.user.enable_sequential_post_navigation && template.params[:tags].present? && template.params[:tags] !~ /order:/) || @post.pools.undeleted.any?
|
(CurrentUser.user.enable_sequential_post_navigation && template.params[:tags].present? && template.params[:tags] !~ /order:/) || @post.pools.any?
|
||||||
end
|
end
|
||||||
|
|
||||||
def post_footer_for_pool_html(template)
|
def post_footer_for_pool_html(template)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<%= render "posts/partials/show/search_seq", :post => post %>
|
<%= render "posts/partials/show/search_seq", :post => post %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if post.pools.undeleted.any? %>
|
<% if post.pools.any? %>
|
||||||
<%= render "posts/partials/show/pools", :post => post %>
|
<%= render "posts/partials/show/pools", :post => post %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user