Changeset 236e11b in Klonkt for src/services


Ignore:
Timestamp:
07/04/2026 05:19:01 PM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
6dd1a3f
Parents:
b7e382f
Message:

fix(ap): self-heal v6 - retroactively restore covers on cached boosts

The resolveRemoteNote image-fallback (1.3.3) only helps NEW boosts:
upsertBoostedNote uses INSERT OR IGNORE, so a boost cached coverless
before the fix keeps its empty media_json forever, even on re-boost.
Bump SELFHEAL_VERSION 5 -> 6 so every instance re-fetches its cached
timeline notes once at boot; mediaFromNote (which has the image
fallback) refreshes the media and the cover appears.

Verified against the real note: the reported post (Swimming Pools,
android.sound-fabrics.com) carries its cover in note.image with no
attachment - exactly what the heal re-reads.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/services/ActivityPubService.js

    rb7e382f r236e11b  
    18711871// during a flux window, e.g. a fleet-wide update), and drops notes that are gone
    18721872// (404/410). Bump SELFHEAL_VERSION only on a release that warrants a re-sync.
    1873 const SELFHEAL_VERSION = 5; // v5: re-fetch so embed/link-only posts pick up the note.image cover in feeds
     1873const SELFHEAL_VERSION = 6; // v6: re-fetch so boosted notes cached coverless (pre image-fallback in resolveRemoteNote) pick up their cover
    18741874async function fetchNoteAP(url) {
    18751875  try {
Note: See TracChangeset for help on using the changeset viewer.