Repository navigation
feat: Daatan forecasts are an Organization in JSON-LD, no ELO on the author line (#2301) - #2305
Merged
Merged
Conversation
…author line (#2301) Carries out the 2026-11-24 choices on #2301: - authorJsonLd() builds every author node on both forecast pages; for the Daatan account it is the site's DAATAN Organization (same as publisher), otherwise a Person with the profile URL as before. /profile/daatan says Organization too. - The author ELO is hidden for the Daatan account on the compact author line and the side panel's Author card. - Telegram keeps "by Daatan" (no change). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #2301
Follow-up to #2302, carrying out the three choices made on 2026-11-24:
OrganizationWhat changes
author/creator, Eventorganizer/performer, and the ClaimReview's Claimauthor/creator. Both page files (/forecasts/[id]and/[locale]/forecasts/[id]) did this. All twelve now callauthorJsonLd()insrc/lib/author-json-ld.ts.publisher(name, HebrewalternateName, site URL), so Google sees one entity, not a "Person" named Daatan./profile/daatan's own JSON-LD saysOrganization; other profiles stayPerson.isDaatanAccount()sits next toDAATAN_USERNAMEinsrc/lib/daatan-account.ts. It matches the username exactly, which is safe because feat: admins can publish a forecast as Daatan (#2301) #2302 reserved that name.Not changed
/profile/daatanitself still shows the default. The decision was about the author line. Say so if the profile card should go too.Tests
authorJsonLd: Organization for Daatan, Person with profile URL otherwise, username fallback.npm test,tscand lint pass.Still open on #2301: one end-to-end run with an admin login (publish once as Daatan).
🤖 Generated with Claude Code