Changeset 55bc7f9 in Klonkt for src/routes/activitypub.js
- Timestamp:
- 06/24/2026 12:09:08 PM (3 months ago)
- Branches:
- main
- Children:
- 3a2c9d3
- Parents:
- 47a0d29
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
r47a0d29 r55bc7f9 74 74 "SELECT * FROM posts WHERE id = ? AND status = 'published' AND (fan_only IS NULL OR fan_only = 0)" 75 75 ).get(req.params.id); 76 if (!post) return res.status(404).end(); 76 if (!post) { 77 // Could be one of OUR outbound replies (ap_outbox), not a post. 78 const note = AP.getOutboxNote(baseUrl(req), req.params.id); 79 if (note) return AP.sendAP(res, { '@context': 'https://www.w3.org/ns/activitystreams', ...note }); 80 return res.status(404).end(); 81 } 77 82 const site = db.prepare('SELECT * FROM sites WHERE id = ?').get(post.site_id); 78 83 if (!site) return res.status(404).end();
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)