mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
Problem: - Email verification links landed on the static site instead of the accounts worker. - Community responses exposed stored author emails, unverified users could affect moderation, and several account/community controls were incomplete. - Related multi-statement writes and handle updates could leave partial or racy state. Root cause: - The frontend origin was reused as the verification endpoint origin. - Public forum queries serialized internal identity columns and interaction routes did not share the verified-member gate. - Forum writes used separate auto-commit statements and profile handles used a check-then-update sequence. Fix: - Add a canonical account worker origin, public profile and resend-verification UI. - Return public handles, gate and rate-limit interactions, implement idempotent likes, and map validation failures to client errors. - Use D1 transactional batches for related forum writes and atomically claim profile handles. - Run focused tests and type checks before worker deployments. Verification: - accounts: 3 tests, TypeScript check, Wrangler dry-run - forum: 4 tests, TypeScript check, Wrangler dry-run - site: 55 tests, Astro build with 42 generated pages