fix wiki excerpt links
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
<%= tag.meta name: "canonical", content: posts_url(tags: params[:tags], host: Danbooru.config.hostname, protocol: "https") %>
|
||||
|
||||
<% if @post_set.has_wiki? %>
|
||||
<% if @post_set.has_wiki_text? %>
|
||||
<% strip_dtext(@post_set.wiki_page.presenter.excerpt).tap do |desc| %>
|
||||
<%= tag.meta name: "description", content: desc %>
|
||||
<%= tag.meta name: "og:description", content: desc %>
|
||||
|
||||
Reference in New Issue
Block a user