Changeset a7bcf66 in Klonkt for src/services
- Timestamp:
- 07/28/2026 06:30:43 PM (6 weeks ago)
- Branches:
- main
- Children:
- 70677e96
- Parents:
- d9ad6c5
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
rd9ad6c5 ra7bcf66 3521 3521 try { 3522 3522 const rows = db.prepare(` 3523 SELECT i.kind, i.actor_name, i.actor_handle, i.actor_url, i.actor_icon, i.content, i.created_at, i. visibility,3523 SELECT i.kind, i.actor_name, i.actor_handle, i.actor_url, i.actor_icon, i.content, i.created_at, i.published, i.visibility, 3524 3524 i.emoji_json, i.actor_emoji_json, i.media_json, i.quote_json, i.embed_json, 3525 3525 p.slug AS post_slug, p.title AS post_title … … 3531 3531 type: r.kind, name: r.actor_name, handle: r.actor_handle, url: r.actor_url, icon: r.actor_icon, 3532 3532 content: stripLeadingMentions(r.content), post_slug: r.post_slug, post_title: r.post_title, created_at: r.created_at, 3533 // When the post was written, for display. created_at (when it reached us) 3534 // stays the sort key and the unread watermark: a note that federated late 3535 // is still new to you. 3536 published: r.published, 3533 3537 emoji_json: r.emoji_json, actor_emoji_json: r.actor_emoji_json, // FEP-9098 (messages render) 3534 3538 media_json: r.media_json, quote_json: r.quote_json, embed_json: r.embed_json, // rendered like a Krant post … … 3555 3559 } catch { /* ignore */ } 3556 3560 try { 3557 for (const r of db.prepare(`SELECT object_uri, note_url, actor_uri, actor_name, actor_handle, actor_icon, actor_url, content, wave, help_request, created_at, 3561 for (const r of db.prepare(`SELECT object_uri, note_url, actor_uri, actor_name, actor_handle, actor_icon, actor_url, content, wave, help_request, created_at, published, 3558 3562 emoji_json, actor_emoji_json, media_json, quote_json, embed_json 3559 3563 FROM ap_mentions WHERE slug = ? ORDER BY created_at DESC LIMIT ?`).all(slug, L)) { 3560 out.push({ type: 'mention', name: r.actor_name, handle: r.actor_handle, url: r.actor_url || r.actor_uri, icon: r.actor_icon, content: stripLeadingMentions(r.content), note_url: r.note_url || r.object_uri, wave: r.wave ? 1 : 0, help_request: r.help_request ? 1 : 0, actorUri: r.actor_uri, created_at: r.created_at, 3564 out.push({ type: 'mention', name: r.actor_name, handle: r.actor_handle, url: r.actor_url || r.actor_uri, icon: r.actor_icon, content: stripLeadingMentions(r.content), note_url: r.note_url || r.object_uri, wave: r.wave ? 1 : 0, help_request: r.help_request ? 1 : 0, actorUri: r.actor_uri, created_at: r.created_at, published: r.published, 3561 3565 // Same trimmings a Krant row has, so Berichten renders the post identically. 3562 3566 emoji_json: r.emoji_json, actor_emoji_json: r.actor_emoji_json, media_json: r.media_json, quote_json: r.quote_json, embed_json: r.embed_json });
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)