Changeset e62f65d in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 07/25/2026 08:01:21 AM (7 weeks ago)
- Branches:
- main
- Children:
- ad6f62a
- Parents:
- 5c373b8
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r5c373b8 re62f65d 276 276 // FEP-633c 5.2.1: a ward's call for help. Only ever on direct notes. 277 277 ...Guardianship.helpRequestProps(post), 278 ...Guardianship.waveProps(post), 278 279 tag: [ 279 280 ...mentionTags(post.content), … … 1515 1516 // flag is stored so the Guardian PWA's message centre can list it. 1516 1517 const help = Guardianship.isHelpRequest(o); 1518 const wave = Guardianship.isWave(o); 1517 1519 for (const slug of slugs) { 1518 1520 try { 1519 const r = db.prepare('INSERT OR IGNORE INTO ap_mentions (slug, object_uri, note_url, actor_uri, actor_name, actor_handle, actor_icon, actor_url, content, published, help_request, created_at) VALUES (?,?,?,?,?,?,?,?,?,?,?,CURRENT_TIMESTAMP)')1520 .run(slug, o.id, safeUrl(o.url) || null, actorUri, ai.name, ai.handle, ai.icon, ai.url, html, o.published || null, help ? 1 : 0 );1521 const r = db.prepare('INSERT OR IGNORE INTO ap_mentions (slug, object_uri, note_url, actor_uri, actor_name, actor_handle, actor_icon, actor_url, content, published, help_request, wave, created_at) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,CURRENT_TIMESTAMP)') 1522 .run(slug, o.id, safeUrl(o.url) || null, actorUri, ai.name, ai.handle, ai.icon, ai.url, html, o.published || null, help ? 1 : 0, wave ? 1 : 0); 1521 1523 if (r.changes) { 1522 1524 console.log('[AP] mention', actorUri, '→', slug, help ? '(help request)' : '');
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)