RBoy
(RBoy)
Março 29, 2026, 5:36pm
1
Continuando a discussão de Ou ‘acceptedAnswer’ ou ‘suggestedAnswer’ deve ser especificado :
Tive esse problema surgindo hoje de repente após atualizar para a versão mais recente desta semana.
Alguma ideia do por que começou de repente? O site existe há uma década, assim como a página afetada por isso. O tópico tem apenas uma postagem (wiki) do administrador (é um tópico de FAQ de aviso).
1 curtida
Obrigado pelo relatório, o trabalho recente de @davidb parece ter trazido à tona esse problema.
Será corrigido por
main ← fix/qa-page-schema-no-answers
opened 09:22AM - 30 Mar 26 UTC
Google Search Console reports acceptedAnswer/suggestedAnswer errors on topics th… at emit QAPage structured data with answerCount:0 and neither field present. This affects single-post topics, topics where the only replies are hidden or small action posts, and topics whose accepted answer has been hidden.
The fix introduces two checks:
1. A `has_eligible_answers?` query in SchemaUtils that verifies at least one visible, regular-type reply exists before emitting QAPage schema (both JSON-LD and microdata). Topics without eligible answers fall back to the default DiscussionForumPosting schema.
2. A `has_answers` policy in BuildSchemaMarkup that gates on the materialized accepted_answer/suggested_answers after they've been fetched, catching any edge cases the topic-level check might miss.
Additionally, `fetch_accepted_answer` now checks post visibility via `Guardian.new.can_see_post?` (anonymous perspective) so hidden accepted answers are excluded from schema output rather than being advertised to search engines. The `"answered only"` setting also uses this visibility check instead of just testing whether an answer_post_id exists.
https://meta.discourse.org/t/399525
5 curtidas
zogstrip
Fechado
Abril 3, 2026, 6:00am
3
Este tópico foi automaticamente fechado após 15 horas. Novas respostas não são mais permitidas.