Changeset bfa6fa1 in Klonkt for src/services
- Timestamp:
- 07/31/2026 06:02:01 PM (6 weeks ago)
- Branches:
- main
- Children:
- 72ec6a4
- Parents:
- 0ca7e9a4
- Location:
- src/services
- Files:
-
- 2 edited
-
ActivityPubService.js (modified) (2 diffs)
-
i18n.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r0ca7e9a4 rbfa6fa1 234 234 } 235 235 } catch { /* skip malformed ap_aliases */ } 236 // FEP-7628 slice 3: this account moved. The old actor stays online AS A 237 // SIGNPOST — that is the whole point of keeping it: whoever missed the Move 238 // activity (offline server, later visitor) still learns where we went by 239 // fetching us. Per the FEP the moved actor "should be considered inactive", 240 // and publishers should stop delivering here. 241 if (site.moved_to && /^https?:\/\//i.test(String(site.moved_to))) actor.movedTo = String(site.moved_to); 236 242 // Profile links → PropertyValue rows: Mastodon/PeerTube/WordPress-ActivityPub render these as 237 243 // profile metadata (rel=me enables link-back verification). Additive; ignored by simpler receivers. … … 3892 3898 to: [`${me}/followers`], 3893 3899 }; 3900 // FEP-7628: after setting movedTo, notify the followers with an Update of 3901 // the actor, so their servers hold the signpost even if the Move itself is 3902 // lost. Built from the FRESH row: `site` still carries the pre-move values. 3903 const movedSite = db.prepare('SELECT * FROM sites WHERE slug = ?').get(site.slug) || { ...site, moved_to: target.id }; 3904 const update = { 3905 '@context': AP_CONTEXT, 3906 id: `${me}#update-${Date.now()}-${rid()}`, 3907 type: 'Update', actor: me, to: [PUBLIC], cc: [`${me}/followers`], 3908 object: buildActor(base, movedSite), 3909 published: new Date().toISOString(), 3910 }; 3894 3911 const inboxes = [...new Set(fStmts().list.all(site.slug).map((f) => f.shared_inbox || f.inbox).filter(Boolean))]; 3912 const send = deliverFn || deliverWithRetry; 3895 3913 for (const inbox of inboxes) { 3896 await (deliverFn || deliverWithRetry)(site.slug, inbox, move, `${me}#main-key`, keys.private_pem); 3914 await send(site.slug, inbox, update, `${me}#main-key`, keys.private_pem); 3915 await send(site.slug, inbox, move, `${me}#main-key`, keys.private_pem); 3897 3916 } 3898 3917 console.log('[AP] MOVE announced:', site.slug, '→', target.id, 'naar', inboxes.length, 'inbox(en)'); -
src/services/i18n.js
r0ca7e9a4 rbfa6fa1 912 912 'vblk.back': 'Terug', 913 913 'vblk.to_home': 'Naar de hoofdpagina', 914 'phome.moved_lead': 'Dit account is verhuisd. Je vindt me nu hier:', 915 'phome.moved_hint': 'Volg je me al? Dan verhuist je server je waarschijnlijk vanzelf mee. Zo niet: volg het nieuwe adres.', 914 916 'phome.empty_title': 'Hier is het nog stil.', 915 917 'phome.empty_sub': 'Nog geen posts. Spannend.', … … 1854 1856 'vblk.back': 'Back', 1855 1857 'vblk.to_home': 'Go to the main page', 1858 'phome.moved_lead': 'This account has moved. You can find me here now:', 1859 'phome.moved_hint': 'Already following me? Your server most likely moves you along by itself. If not: follow the new address.', 1856 1860 'phome.empty_title': "It's quiet here for now.", 1857 1861 'phome.empty_sub': 'No posts yet. Exciting.', … … 2796 2800 'vblk.back': 'Zurück', 2797 2801 'vblk.to_home': 'Zur Hauptseite', 2802 'phome.moved_lead': 'Dieses Konto ist umgezogen. Du findest mich jetzt hier:', 2803 'phome.moved_hint': 'Folgst du mir schon? Dann zieht dein Server dich wahrscheinlich automatisch mit. Falls nicht: folge der neuen Adresse.', 2798 2804 'phome.empty_title': 'Hier ist es noch still.', 2799 2805 'phome.empty_sub': 'Noch keine Beiträge. Spannend.',
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)