fix: correct spelling of "Update" in commit message to "Update"

This commit is contained in:
2026-06-13 12:56:35 +00:00
parent aa1598009e
commit 6756c980cf
16 changed files with 473 additions and 88 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ Tests run on port 10501 with a tempfile SQLite DB and a dedicated `DEVPLACE_DATA
`@app.on_event("startup")` calls `init_db()` and, unless `DEVPLACE_DISABLE_SERVICES` is set, registers `NewsService` with `service_manager` and kicks off `start_all()` as an asyncio task. `@app.on_event("shutdown")` calls `service_manager.stop_all()`.
`GET /` is the landing page for guests; authenticated users get redirected to `/feed`. The landing pulls up to 6 articles where `show_on_landing=1` from the `news` table plus 6 recent posts (joined via the batch helpers in `database.py`).
`GET /` is the home page and never redirects: guests get the marketing splash, authenticated users get a personalized home (welcome card with their avatar/stats, a feed shortcut, quick links), both sharing the Latest Posts + Developer News sections. It pulls up to 6 articles where `show_on_landing=1` from the `news` table plus 6 recent posts (joined via the batch helpers in `database.py`). The Latest Posts section and the main `/feed` enforce **author diversity** (at most two posts per author) via `diversify_by_author` / `paginate_diverse` in `database.py` - `paginate_diverse` mirrors `paginate` (same `(rows, next_cursor)` contract) and enforces the cap per page.
### Routing layout
One file per domain in `devplacepy/routers/`. Prefixes are wired in `main.py`: