fix wiki excerpt links

This commit is contained in:
Albert Yi
2018-10-22 13:15:33 -07:00
parent e87a135928
commit 5d3f072a2f
2 changed files with 6 additions and 2 deletions

View File

@@ -26,7 +26,11 @@ module PostSets
end
def has_wiki?
is_single_tag? && ::WikiPage.titled(tag_string).exists? && wiki_page.visible? && wiki_page.body.present?
is_single_tag? && ::WikiPage.titled(tag_string).exists? && wiki_page.visible?
end
def has_wiki_text?
has_wiki? && wiki_page.body.present?
end
def has_blank_wiki?