This repository has no description

fix: normalize image and link markdown in sync's PDS comparison master

processNoteContent rewrites local image paths to blob CIDs and internal markdown links to AT URIs before writing the note to PDS. matchesPDS was comparing the raw local body against the transformed PDS body, so any post with an image or internal link in its first 5000 chars failed the equality check deterministically. sync would then store contentHash and noteHash as empty strings, and the next publish run would re-flag the post as "content changed" even though nothing had changed. Strip image markdown and link URLs from both sides before comparing so the rewrite asymmetry no longer matters.


+21 -10
1 changed file