diff --git a/app/views/posts/partials/index/_seo_meta_tags.html.erb b/app/views/posts/partials/index/_seo_meta_tags.html.erb index 111a1a7ff..da236fbcf 100644 --- a/app/views/posts/partials/index/_seo_meta_tags.html.erb +++ b/app/views/posts/partials/index/_seo_meta_tags.html.erb @@ -23,7 +23,7 @@ <%= tag.meta name: "canonical", content: posts_url(tags: params[:tags], host: Danbooru.config.hostname, protocol: "https") %> <% if @post_set.best_post.present? %> + <%= tag.meta property: "og:image", content: @post_set.best_post.open_graph_image_url %> <%= tag.meta name: "twitter:image", content: @post_set.best_post.open_graph_image_url %> - <%= tag.meta name: "og:image", content: @post_set.best_post.open_graph_image_url %> <%= tag.meta name: "twitter:card", content: "summary_large_image" %> <% end %> diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index 92a03eb46..46ee9b688 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -162,7 +162,7 @@ <% if policy(@post).visible? %> - <%= tag.meta name: "og:image", content: @post.open_graph_image_url %> + <%= tag.meta property: "og:image", content: @post.open_graph_image_url %> <% end %> <%= tag.meta name: "canonical", content: post_url(@post, host: Danbooru.config.hostname, protocol: "https") %>