Changeset 1e172f3 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 08/07/2026 12:00:22 PM (5 weeks ago)
- Branches:
- main
- Children:
- 4c1e327
- Parents:
- ea138c0
- git-author:
- Robin <roboburr@…> (08/07/2026 12:00:20 PM)
- git-committer:
- roboburr <roboburr@…> (08/07/2026 12:00:22 PM)
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
rea138c0 r1e172f3 4902 4902 const wardDoc = await fetchActor(wardUri).catch(() => null); 4903 4903 const fai = actorInfo(await fetchActor(follower).catch(() => null), follower); 4904 Guardianship.follows.recordReview(gslug, { id: followId, wardUri, wardInbox: wardDoc && wardDoc.inbox, follower, followerHandle: fai.handle, followerIcon: fai.icon, followJson: JSON.stringify(fo) }); 4904 // De RICHTING bewaren (shaer-jdb). shaer:direction wordt sinds de uitgaande 4905 // gate meegestuurd maar werd nergens gelezen, dus een uitgaande belandde 4906 // hier als "deze ward wil deze ward volgen" met het doel weggegooid. 4907 // Terugval voor oudere afzenders: is de volger de ward zelf, dan is het 4908 // uitgaand -- dat volgt uit de vorm en hoeft niet geloofd te worden. 4909 const uitgaand = act['shaer:direction'] === 'outgoing' || follower === wardUri; 4910 const doel = uitgaand ? (typeof fo.object === 'string' ? fo.object : (fo.object && fo.object.id)) : null; 4911 const dai = uitgaand ? actorInfo(await fetchActor(doel).catch(() => null), doel) : null; 4912 Guardianship.follows.recordReview(gslug, { 4913 id: followId, wardUri, wardInbox: wardDoc && wardDoc.inbox, 4914 follower, followerHandle: fai.handle, followerIcon: fai.icon, followJson: JSON.stringify(fo), 4915 direction: uitgaand ? 'outgoing' : 'incoming', 4916 target: doel || null, targetHandle: dai ? dai.handle : null, 4917 }); 4905 4918 const L = pushLang(gslug); 4906 4919 pushEvent(gslug, { type: 'guardian', title: i18nT(L, 'push.n_guard_cog_t'), body: i18nT(L, 'push.n_guard_cog_b', { who: fai.name || fai.handle || i18nT(L, 'notif.someone') }), url: `${pushPrefix(gslug)}/guardian` });
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)