Changeset d3b9f68 in Klonkt for src/routes/activitypub.js
- Timestamp:
- 06/30/2026 02:38:47 AM (2 months ago)
- Branches:
- main
- Children:
- 432831c
- Parents:
- e0a1ec1
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
re0a1ec1 rd3b9f68 132 132 return res.redirect(302, src); 133 133 } 134 return AP.sendAP(res, { '@context': 'https://www.w3.org/ns/activitystreams', ...note });134 return AP.sendAP(res, { '@context': AP.AP_CONTEXT, ...note }); 135 135 } 136 136 const site = db.prepare('SELECT * FROM sites WHERE id = ?').get(post.site_id); … … 142 142 return res.redirect(302, note.url || (baseUrl(req) + '/')); 143 143 } 144 AP.sendAP(res, { '@context': 'https://www.w3.org/ns/activitystreams', ...note });144 AP.sendAP(res, { '@context': AP.AP_CONTEXT, ...note }); 145 145 }); 146 146 … … 150 150 const items = AP.getReplyUris(base, req.params.id); 151 151 AP.sendAP(res, { 152 '@context': 'https://www.w3.org/ns/activitystreams',152 '@context': AP.AP_CONTEXT, 153 153 id: `${base}/ap/notes/${req.params.id}/replies`, 154 154 type: 'OrderedCollection',
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)