Changeset 787e0d9 in Klonkt for src/routes/guardian2.js
- Timestamp:
- 07/25/2026 10:11:15 AM (7 weeks ago)
- Branches:
- main
- Children:
- f1c50f9
- Parents:
- 0a686a0
- File:
-
- 1 edited
-
src/routes/guardian2.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/guardian2.js
r0a686a0 r787e0d9 148 148 if (!site) return res.status(404).json({ error: 'no_site' }); 149 149 const items = []; 150 const host = (() => { try { return new URL(process.env.PUBLIC_BASE_URL || '').host; } catch { return ''; } })(); 150 151 // Local wards (guardian co-located): read the pending follows directly. 151 152 for (const wardSlug of wardSlugsOf(site)) { 152 153 for (const f of Guardianship.follows.listForWard(wardSlug)) { 153 items.push({ id: f.id, ward: wardSlug, follower: f.follower_handle || f.follower_name || f.follower_uri, followerIcon: f.follower_icon, remote: false, created: f.created_at });154 items.push({ id: f.id, ward: `@${wardSlug}@${host}`, follower: f.follower_handle || f.follower_name || f.follower_uri, followerIcon: f.follower_icon, remote: false, created: f.created_at }); 154 155 } 155 156 }
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)