You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Port blog authoring and comments from the Django site to learn (Workers + D1) #1293
learn/MIGRATION.md lists "Blog authoring and comments" as still open. The Django site has BlogPost and BlogComment (draft/published/archived posts, tags, reading time, threaded comments that start unapproved). learn/ only shows legacy blog records read-only. This issue proposes porting it natively to the Cloudflare Python Worker and D1 in four small PRs, the same way as #1286.
Plan
Posts API: tables, migration, and endpoints to create, list, read, update and delete. Authors manage their own posts; drafts are private; published posts are public.
Comments API: comments and one level of replies. New comments start unapproved; the post's author or an admin approves them.
Pages: blog index, post page with comments, and a write/edit form.
Tags and reading time: filter by tag and show reading time.
Rules for every PR
The user comes from the JWT, never the request body.
Text is bounded and shown escaped (plain text with line breaks; Markdown rendering can come later).
Ownership checks return the same 404 for missing and foreign posts.
Writes that must succeed together use one batch.
Tests, README endpoint table, schema.sql, migration and _DDL stay in sync.
Each PR is stacked and says which commit to review.
Legacy blog records stay as a read-only archive. I am happy to take this and will open step 1 first. I would also welcome changes to the scope.
Activity
ayesha1145 commentedon Nov 26, 2026
I'd like to take this. I'll open step 1 (posts API) soon.