Changeset 75f2897 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 08/10/2026 07:33:52 AM (4 weeks ago)
- Branches:
- main
- Children:
- aae5881
- Parents:
- 0db3c72
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r0db3c72 r75f2897 3751 3751 id: o.id, 3752 3752 type: 'Note', 3753 attributedTo: actorUri, 3753 // De ingesloten actor (shaer-nmw): de byline hoort in attributedTo, waar 3754 // elke AP-lezer hem zoekt, en niet in een eigen property ernaast. 3755 attributedTo: actorObject(actorUri, actorInfo(authors.get(actorUri), actorUri)), 3754 3756 inReplyTo: (typeof o.inReplyTo === 'string' ? o.inReplyTo : (o.inReplyTo && o.inReplyTo.id)) || objectUri, 3755 3757 content: HtmlSanitizerService.sanitize(String(o.content || '').slice(0, 50_000)), … … 3777 3779 return out.length ? out : undefined; 3778 3780 })(), 3779 'shaer:author': actorInfo(authors.get(actorUri), actorUri),3780 3781 })).sort((a, b) => String(a.published || '').localeCompare(String(b.published || ''))); 3781 3782 … … 3802 3803 const kept = [], out = { hidden: 0 }; 3803 3804 for (const n of notes) { 3804 if (circle.has(n.attributedTo)) kept.push(n); 3805 // actorUriOf, niet n.attributedTo: sinds de byline ingesloten meegaat is 3806 // dat een OBJECT en zou een kale vergelijking hier stil alles wegfilteren 3807 // -- een ward met een lege thread en nergens een foutmelding. 3808 if (circle.has(actorUriOf(n.attributedTo))) kept.push(n); 3805 3809 else out.hidden += 1; 3806 3810 }
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)