Changeset c52dc82 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 07/28/2026 08:37:08 AM (6 weeks ago)
- Branches:
- main
- Children:
- 3f32994
- Parents:
- 0101d0a
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r0101d0a rc52dc82 2849 2849 // during a flux window, e.g. a fleet-wide update), and drops notes that are gone 2850 2850 // (404/410). Bump SELFHEAL_VERSION only on a release that warrants a re-sync. 2851 const SELFHEAL_VERSION = 1 6; // v16: resolve external link previews (embed_json) for posts that predate the embed pipeline2851 const SELFHEAL_VERSION = 17; // v17: re-resolve link previews now that OpenGraph works and big pages are read instead of refused 2852 2852 async function fetchNoteAP(url) { 2853 2853 try { … … 3190 3190 // quote (a quote already IS the card) and no embed yet, so this costs 3191 3191 // one page fetch per candidate and never repeats. 3192 if (!r.quote_json && !r.embed_json) {3192 if (!r.quote_json) { 3193 3193 const ej = await resolveExternalEmbed(html || r.content).catch(() => null); 3194 3194 if (ej) { try { db.prepare('UPDATE ap_timeline SET embed_json = ? WHERE id = ?').run(ej, r.id); } catch { /* ignore */ } }
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)