Changeset 6e9bc70 in Klonkt for src/services/ap-inbox.js
- Timestamp:
- 10/12/2026 04:15:08 PM (2 days ago)
- Branches:
- main
- Children:
- 61d52ed
- Parents:
- 746d98a
- File:
-
- 1 edited
-
src/services/ap-inbox.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ap-inbox.js
r746d98a r6e9bc70 30 30 import { fwStmts } from './ap-following.js'; 31 31 import * as HubInvite from './hub-invite.js'; 32 import * as ConversationKey from './conversation-key.js'; 32 33 33 34 /** … … 852 853 // laten voor iedereen die de objectvorm stuurt. 853 854 const ouder = safeUrl(typeof o.inReplyTo === 'string' ? o.inReplyTo : (o.inReplyTo && o.inReplyTo.id)) || null; 854 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, in_reply_to, help_request, wave, has_guardians, emoji_json, actor_emoji_json, media_json, created_at) 855 VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,${NU_ISO})`) 855 // WIE ER NOG MEER BIJ WAS (shaer-mbji). De afzender plus iedere 856 // persoon in to/cc, zonder ons. Zonder dit wist een bericht van 857 // Anna aan jou en Ben niet meer dat Ben erbij was, en kwam het 858 // alleen in het gesprek met Anna terecht. 859 // 860 // ALLEEN VOOR EEN DIRECT BERICHT. Deze tabel draagt ook publieke 861 // posts die ons noemen, en een openbare post aan jou en Ben is geen 862 // besloten gesprek met z'n drieën -- dat zou een groep verzinnen 863 // die niemand begon. Die blijft bij zijn afzender, zoals altijd. 864 const ander = noteVisibility(o) === 'direct' 865 ? ConversationKey.participantsOf(o, actorUri, actorId(base, slug)) 866 : [actorUri]; 867 const conv = ConversationKey.conversationKey(ander) || actorUri; 868 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, in_reply_to, help_request, wave, has_guardians, emoji_json, actor_emoji_json, media_json, conv, participants, context, created_at) 869 VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,${NU_ISO})`) 856 870 .run(slug, o.id, safeUrl(o.url) || null, actorUri, ai.name, ai.handle, ai.icon, ai.url, html, o.published || null, ouder, help ? 1 : 0, wave ? 1 : 0, hasG ? 1 : 0, 857 extractEmojiTags(o.tag), emojiJsonOf(ai.emojis), mediaFromNote(o)); 871 extractEmojiTags(o.tag), emojiJsonOf(ai.emojis), mediaFromNote(o), 872 conv, JSON.stringify(ander), ConversationKey.contextOf(o)); 858 873 if (r.changes) { 859 874 // The quote / link-preview card resolves out of band (a remote
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)