Changeset 787e0d9 in Klonkt
- Timestamp:
- 07/25/2026 10:11:15 AM (7 weeks ago)
- Branches:
- main
- Children:
- f1c50f9
- Parents:
- 0a686a0
- Location:
- src
- Files:
-
- 2 edited
-
assets/js/guardian2.js (modified) (1 diff)
-
routes/guardian2.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/assets/js/guardian2.js
r0a686a0 r787e0d9 192 192 var card = el('div', 'g-card'); 193 193 var row = el('div', 'row'); 194 row.appendChild(el('span', 'who grow', f.follower + ' → @' + f.ward));194 row.appendChild(el('span', 'who grow', f.follower + ' → ' + f.ward)); 195 195 var ok = el('button', 'small', T.accept || 'Accept'); 196 196 ok.addEventListener('click', function () { answerFollow(f.id, 'approve', ok); }); -
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)