Changeset 7922694 in Klonkt for src/routes
- Timestamp:
- 07/20/2026 11:03:52 PM (7 weeks ago)
- Branches:
- main
- Children:
- 5143ccf
- Parents:
- 155c24e
- git-author:
- Robin <roboburr@…> (07/20/2026 11:03:51 PM)
- git-committer:
- Robin <roboburr@…> (07/20/2026 11:03:52 PM)
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
r155c24e r7922694 175 175 if (!site) return res.status(404).end(); 176 176 if (owner) { 177 const items = db.prepare('SELECT actor_uri FROM ap_followers WHERE slug = ? ORDER BY created_at').all(site.slug).map((r) => r.actor_uri); 177 const uris = db.prepare('SELECT actor_uri FROM ap_followers WHERE slug = ? ORDER BY created_at').all(site.slug).map((r) => r.actor_uri); 178 const items = uris.map((u) => AP.buildActorRef(site.slug, u)); // name + avatar (shaer-aa3) 178 179 return AP.sendAP(res, AP.buildFollowers(baseUrl(req), site, items.length, items)); 179 180 } … … 190 191 if (owner) { 191 192 let items = []; 192 try { items = db.prepare("SELECT actor_uri FROM ap_following WHERE slug = ? AND status = 'accepted' ORDER BY created_at").all(site.slug).map((r) => r.actor_uri); } catch { /* table may not exist */ }193 try { items = db.prepare("SELECT actor_uri FROM ap_following WHERE slug = ? AND status = 'accepted' ORDER BY created_at").all(site.slug).map((r) => AP.buildActorRef(site.slug, r.actor_uri)); } catch { /* table may not exist */ } 193 194 return AP.sendAP(res, AP.buildFollowing(baseUrl(req), site, items.length, items)); 194 195 }
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)