Changeset 59e522f in Klonkt for src/routes/posts.js
- Timestamp:
- 06/19/2026 08:18:26 AM (3 months ago)
- Branches:
- main
- Children:
- 13b2986
- Parents:
- 3b6e04a
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r3b6e04a r59e522f 399 399 400 400 const site = res.locals.site; 401 if (!site) return res.status(404).send('Site not found');401 if (!site) return next(); // -> nette 404 catch-all 402 402 403 403 const post = db.prepare(` … … 407 407 `).get(site.id, req.params.slug); 408 408 409 if (!post) return res.status(404).send('Post not found');409 if (!post) return next(); // onbekende slug -> nette 404 catch-all 410 410 411 411 // Permission to view: published OR (logged in + can edit)
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)