Changeset 236e11b in Klonkt


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@…>

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG.de.md

    rb7e382f r236e11b  
    55
    66## [Unreleased]
     7
     8### Behoben
     9- **Boosts, die ihr Cover verloren hatten, bekommen es automatisch zurück.**
     10  Beiträge, die du vor dem Cover-Fix geboostet hast, waren ohne Artwork
     11  gespeichert; sie werden beim nächsten Neustart einmalig aufgefrischt.
    712
    813## [1.3.3] — 2026-07-03
  • CHANGELOG.md

    rb7e382f r236e11b  
    55
    66## [Unreleased]
     7
     8### Fixed
     9- **Boosts that lost their cover get it back automatically.** Posts you boosted
     10  before the cover fix were cached without their artwork; they are refreshed
     11  once on the next restart.
    712
    813## [1.3.3] — 2026-07-03
  • CHANGELOG.nl.md

    rb7e382f r236e11b  
    55
    66## [Unreleased]
     7
     8### Opgelost
     9- **Boosts die hun cover kwijt waren krijgen 'm automatisch terug.** Posts die
     10  je vóór de cover-fix boostte waren zonder artwork opgeslagen; die worden bij
     11  de volgende herstart eenmalig ververst.
    712
    813## [1.3.3] — 2026-07-03
  • 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.