Changeset 55eca8b in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 07/30/2026 12:49:18 PM (6 weeks ago)
- Branches:
- main
- Children:
- 1a2f206
- Parents:
- 6a99668
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r6a99668 r55eca8b 2900 2900 * skipped here and stay a post. 2901 2901 */ 2902 // Inbound replies on YOUR posts, for the app's message stream. They live in 2903 // ap_interactions (the web's comment machinery) and deliberately NOT in 2904 // ap_mentions (the mention store returns early for replies-to-us), so the 2905 // C2S read missed them entirely: a reply arrived at the other side 2906 // everywhere EXCEPT in the other's app (Robins melding, 30-7: "komt niet 2907 // binnen bij de ander"). 2908 export function getReplyMessages(slug, limit) { 2909 try { 2910 return db.prepare(` 2911 SELECT i.object_uri, i.actor_uri, i.actor_name, i.actor_handle, i.actor_icon, i.actor_url, 2912 i.content, i.published, i.created_at, i.parent_uri, i.post_id, 2913 i.emoji_json, i.actor_emoji_json, i.media_json, i.quote_json, i.embed_json 2914 FROM ap_interactions i 2915 JOIN posts p ON p.id = i.post_id 2916 JOIN sites s ON s.id = p.site_id 2917 WHERE s.slug = ? AND i.kind = 'reply' 2918 ORDER BY COALESCE(i.published, i.created_at) DESC LIMIT ?`).all(slug, limit || 60); 2919 } catch { return []; } 2920 } 2921 2902 2922 export function getDirectMessages(slug, limit) { 2903 2923 try { … … 4200 4220 linkifyBody, bakePostContent, bakePostContentWithMentions, listFollowers, removeFollower, listConnections, 4201 4221 noteVisibility, belongsInTimeline, playerUrlFor, isRejectedObject, rejectInteraction, interactionReportTarget, 4202 getMessages, notificationsSeenAt, ingestOutboxActivity, c2sVisibility, actorDisplay, buildActorRef, prefersEnriched, selfAuthor, 4222 getMessages, notificationsSeenAt, ingestOutboxActivity, c2sVisibility, actorDisplay, buildActorRef, prefersEnriched, selfAuthor, getReplyMessages, 4203 4223 };
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)