divan/web
Anas Rashid 93825fe5d9 Publishing commits to divan-data git (#34); public names only; 'last edited' on poems
- api/src/git.ts: each published version is a commit in the divan-data checkout (queued, one at a
  time): the moderator as author by public name with a placeholder email, the summary and version
  in the message, Reviewed-by / Approved-by / Divan-Revision / Divan-Version trailers;
  DIVAN_GIT_PUSH=1 pushes. The commit id is kept with the revision.
- Privacy fix: published files and commits carry public names (profile name, else 'موڈریٹر <id>'),
  never email addresses (divan-data is public).
- Poem pages: 'دیوان کا ورژن …' with who edited, reviewed and published, the date, and a link to
  the commit diff (DIVAN_DATA_COMMIT_URL).
- deploy/sync.sh: pull --rebase so publishing commits are kept.
- Admins are super moderators (documented).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 00:37:39 +02:00
..
public Divan v2: Astro site with Divan's own design (proof of concept) 2026-10-08 20:26:54 +02:00
src Publishing commits to divan-data git (#34); public names only; 'last edited' on poems 2026-10-09 00:37:39 +02:00
.gitignore Divan v2: Astro site with Divan's own design (proof of concept) 2026-10-08 20:26:54 +02:00
astro.config.mjs Accounts: email and password sign-up, sign-in/out, change password, delete account (#18) 2026-10-08 22:53:51 +02:00
package-lock.json Self-host Naskh and Nastaliq fonts (fixes font switch in Brave); ?font= URL option 2026-10-08 21:09:26 +02:00
package.json Self-host Naskh and Nastaliq fonts (fixes font switch in Brave); ?font= URL option 2026-10-08 21:09:26 +02:00