Update Site source

This commit is contained in:
Meghdad committed 2026-10-13 19:04:36 +03:30
1 parent 783bcf2dd8
commit e6e5d9cb13
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ Balances are net amounts in the supplied history, without any inferred opening b
## Live social previews
`/api/share-image` generates a 1600×1200 PNG server-side from D1 and the baseline using the bundled `next/og` renderer. It shows balance, deposits/withdrawals, low-balance count, top eight members, eight members needing a refill and their required top-ups, the four most recent transactions, and the latest game timestamp. Both the image and ledger API bypass application caching. Root metadata reads the same data and adds a content-derived revision to the image URL. The revision changes for backdated imports too; duplicates leave it unchanged. The header's sharing button adds the current Unix time in seconds as `t` to the versioned page URL, then copies the URL. Root metadata propagates the same timestamp to the image URL, allowing a fresh Discord unfurl even if ledger data has not changed. If clipboard access is unavailable, a selectable URL is shown. Discord controls its own cache: embeds already posted are not guaranteed to refresh automatically. The image endpoint always reads current data, including when requested using an older revision query.
`/api/share-image` generates a 1600×1200 PNG server-side from D1 and the baseline using the bundled `next/og` renderer. It shows balance, deposits/withdrawals, low-balance count, top eight members, eight members needing a refill and their required top-ups, the four most recent transactions, and the latest game timestamp. Both the image and ledger API bypass application caching. Root metadata reads the same data and adds a content-derived revision to the image URL. The internal image revision changes for backdated imports too; duplicates leave it unchanged. Shared page links contain only the Unix timestamp (`?t=...`), without the internal revision. The header's sharing button adds the current Unix time in seconds as `t` to the clean page URL, then copies the URL. Root metadata propagates the same timestamp to the image URL, allowing a fresh Discord unfurl even if ledger data has not changed. If clipboard access is unavailable, a selectable URL is shown. Discord controls its own cache: embeds already posted are not guaranteed to refresh automatically. The image endpoint always reads current data, including when requested using an older revision query.
The live card uses bundled OFL-licensed Vazirmatn regular/bold fonts. Persian labels are shaped into presentation forms for Satori, with explicit column ordering so player names and numbers retain their correct order. Persian numbers and dates use Persian digits; game timestamps are not converted to another timezone. The card edition is included in revisioned share links to invalidate earlier English previews.