From 3762a66b92c17560db9acfdacdcc87192f360342 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 8 Jul 2020 12:36:27 -0500 Subject: [PATCH] seo: fix Google rich results not detecting site logo. Bug: for some reason, Google's rich results tool doesn't detect our logo when the @id property is present. https://search.google.com/test/rich-results --- app/helpers/seo_helper.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/helpers/seo_helper.rb b/app/helpers/seo_helper.rb index 60330ada5..69b898eb3 100644 --- a/app/helpers/seo_helper.rb +++ b/app/helpers/seo_helper.rb @@ -25,7 +25,6 @@ module SeoHelper "@graph": [ { "@type": "Organization", - "@id": root_url(anchor: "organization", host: Danbooru.config.hostname), url: root_url(host: Danbooru.config.hostname), name: Danbooru.config.app_name, logo: "#{root_url(host: Danbooru.config.hostname)}images/danbooru-logo-500x500.png", @@ -37,9 +36,6 @@ module SeoHelper "url": root_url(host: Danbooru.config.hostname), "name": Danbooru.config.app_name, "description": site_description, - "publisher": { - "@id": root_url(anchor: "organization", host: Danbooru.config.hostname), - }, "potentialAction": [{ "@type": "SearchAction", "target": "#{posts_url(host: Danbooru.config.hostname)}?tags={search_term_string}",