From 684df58437d1cc9035ee7aa3906709ba355b7688 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 4 Dec 2018 20:04:54 +0000 Subject: [PATCH] Move the QAPage Question into mainEntity Fixes https://meta.discourse.org/t/support-schema-org-qapage-and-google-rich-results/33813/14?u=notriddle --- plugin.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/plugin.rb b/plugin.rb index 765618e..01c4f7a 100644 --- a/plugin.rb +++ b/plugin.rb @@ -246,10 +246,6 @@ SQL } } - page_json = { - '@type' => 'QAPage', - 'name' => topic&.title, - } if accepted_answer = Post.find_by(id: topic.custom_fields["accepted_answer_post_id"]) question_json[:acceptedAnswer] = { '@type' => 'Answer', @@ -266,10 +262,9 @@ SQL [''].join("") end