diff --git a/app/logical/post_sets/post.rb b/app/logical/post_sets/post.rb index 9a7ff0e88..975a96b80 100644 --- a/app/logical/post_sets/post.rb +++ b/app/logical/post_sets/post.rb @@ -19,11 +19,11 @@ module PostSets end def has_wiki? - tag_array.size == 1 && ::WikiPage.titled(tag_string).exists? + is_single_tag? && ::WikiPage.titled(tag_string).exists? end def wiki_page - if tag_array.any? + if is_single_tag? ::WikiPage.titled(tag_string).first else nil diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb index 784591434..bff9d0e4b 100644 --- a/app/views/posts/index.html.erb +++ b/app/views/posts/index.html.erb @@ -48,7 +48,7 @@ <%= content_for(:html_header) do %> - <% if @post_set.wiki_page %> + <% if @post_set.has_wiki? %> <% end %> <% end %>