Changeset e311202 in Klonkt for src/routes/activitypub.js
- Timestamp:
- 08/21/2026 08:44:47 AM (3 weeks ago)
- Branches:
- main
- Children:
- 4e5fe29
- Parents:
- bb9e54c
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
rbb9e54c re311202 1258 1258 // cannot_resolve_inReplyTo. Strangers still get the exact same 404, so a 1259 1259 // note's existence stays as private as before. 1260 // EEN GEBLOKKEERDE KRIJGT DE DEUR DICHT (Robin, 21-8), net als bij de outbox: 1261 // wie ondertekend aanklopt, klopt met zijn naam erop, en een blokkade is een 1262 // gesloten deur. Dezelfde 404 als een vreemde, zodat het bestaan van een note 1263 // niets extra's verraadt. Onbetekende verzoeken kunnen we niet thuisbrengen 1264 // en houden de publieke weergave -- daarvoor is de Block-bezorging. 1265 if (req.headers['signature']) { 1266 const wie = await AP.verifyRequest(req).catch(() => null); 1267 if (wie && wie.id && AP.isBlockedAny(wie.id)) return res.status(404).end(); 1268 } 1260 1269 const post = db.prepare( 1261 1270 "SELECT * FROM posts WHERE id = ? AND status = 'published'"
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)