Skip to content

feat: Daatan forecasts are an Organization in JSON-LD, no ELO on the author line (#2301) - #2305

Merged
komapc merged 1 commit into
mainfrom
feat/daatan-author-polish-2301
Nov 24, 2026
Merged

komapc merged 1 commit into
mainfrom
feat/daatan-author-polish-2301

Conversation

@komapc

@komapc komapc commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Refs #2301

Follow-up to #2302, carrying out the three choices made on 2026-11-24:

Question Decision This PR
JSON-LD type for a forecast published as Daatan Organization done
"ELO 1500" on the author line hide it done
Telegram "new forecast" wording keep "by Daatan" no change

What changes

  • JSON-LD. Each forecast page built the author node by hand in six places: Article author/creator, Event organizer/performer, and the ClaimReview's Claim author/creator. Both page files (/forecasts/[id] and /[locale]/forecasts/[id]) did this. All twelve now call authorJsonLd() in src/lib/author-json-ld.ts.
    • For the Daatan account it returns the same DAATAN Organization the page already uses as publisher (name, Hebrew alternateName, site URL), so Google sees one entity, not a "Person" named Daatan.
    • Every other author is still a Person with the profile URL, unchanged.
  • Profile page. /profile/daatan's own JSON-LD says Organization; other profiles stay Person.
  • ELO. Hidden for the Daatan account on both author lines: the compact one under the claim and the side panel's Author card. For everyone else it shows as before.
  • isDaatanAccount() sits next to DAATAN_USERNAME in src/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

  • The ELO card on /profile/daatan itself still shows the default. The decision was about the author line. Say so if the profile card should go too.
  • Telegram, per the decision.

Tests

  • authorJsonLd: Organization for Daatan, Person with profile URL otherwise, username fallback.
  • Both author lines: ELO shown for an ordinary author, hidden for Daatan. With the guard removed, both new hide-tests fail.
  • npm test, tsc and lint pass.

Still open on #2301: one end-to-end run with an admin login (publish once as Daatan).

🤖 Generated with Claude Code

…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>
@komapc
komapc merged commit 1446a28 into main Nov 24, 2026
17 checks passed
@komapc
komapc deleted the feat/daatan-author-polish-2301 branch November 24, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant