diff --git a/app/logical/post_sets/post.rb b/app/logical/post_sets/post.rb index 68b291a56..ef97af9ed 100644 --- a/app/logical/post_sets/post.rb +++ b/app/logical/post_sets/post.rb @@ -18,7 +18,7 @@ module PostSets end def has_wiki? - tag_array.any? && ::WikiPage.titled(tag_string).exists? + tag_array.size == 1 && ::WikiPage.titled(tag_string).exists? end def wiki_page diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb index 8c74db2ae..6f4bbfea1 100644 --- a/app/views/posts/index.html.erb +++ b/app/views/posts/index.html.erb @@ -20,7 +20,7 @@
  • Posts
  • - <% if params[:tags].present? %> + <% if @post_set.has_wiki? %>
  • Wiki
  • <% end %>