RBoy
(RBoy)
29. März 2026 um 17:36
1
Fortsetzung der Diskussion aus Entweder ‘acceptedAnswer’ oder ‘suggestedAnswer’ muss angegeben werden :
Dieses Problem ist heute plötzlich nach dem Update auf den neuesten Build dieser Woche aufgetreten.
Haben Sie eine Idee, warum es plötzlich aufgetreten ist? Die Seite gibt es seit einem Jahrzehnt, und ebenso die Seite, die davon betroffen ist. Das Thema hat nur einen Beitrag (Wiki) vom Administrator (es ist ein FAQ-Hinweisthema).
1 „Gefällt mir“
Danke für den Bericht, @davidbs aktuelle Arbeit scheint dieses Problem aufgedeckt zu haben.
Wird behoben durch
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 „Gefällt mir“
zogstrip
Geschlossen,
3. April 2026 um 06:00
3
Dieses Thema wurde automatisch nach 15 Stunden geschlossen. Neue Antworten sind nicht mehr möglich.