Changeset 67f7150 in Klonkt for src/routes/activitypub.js
- Timestamp:
- 07/30/2026 11:26:35 AM (6 weeks ago)
- Branches:
- main
- Children:
- 6dd26e5
- Parents:
- a9da2c0
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
ra9da2c0 r67f7150 110 110 ORDER BY COALESCE(published_at, created_at) DESC LIMIT 20` 111 111 ).all(site.id); 112 AP.sendAP(res, AP.buildOutbox(baseUrl(req), site, posts), audience === 'friend' ? 'private, no-store' : undefined); 112 const ob = AP.buildOutbox(baseUrl(req), site, posts); 113 if (audience === 'friend') { 114 // The owner's app builds its feed from this leg, and every note here is 115 // by the site itself: give it the same `shaer:author` byline the timeline 116 // entries carry, so your own cards get a header too (avatar + name). 117 const me = AP.selfAuthor(baseUrl(req), site); 118 for (const it of ob.orderedItems) { 119 if (it && it.object && typeof it.object === 'object') it.object['shaer:author'] = me; 120 } 121 } 122 AP.sendAP(res, ob, audience === 'friend' ? 'private, no-store' : undefined); 113 123 }); 114 124
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)