Merge dev → main: read post body from content_json_string (the empty-body fix) (#842) #107
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The root-cause fix for empty post bodies. Patreon deprecated the flat
contentHTML field (returns null on feed + detail, all post types); the body now lives incontent_json_string(a ProseMirror doc), returned only under the default post fieldset.utils/prosemirror.py: ProseMirror→HTML +post_body_html(attrs)resolver (legacy content else convert content_json_string)._FIELDS_POSTaddscontent_json_string;fetch_post_detail_contentuses the default fieldset (no sparse) + the resolver._write_sidecar_dataresolves the body via the helper before the detail fetch.<img>nodes carry the CDN filehash → feed Phase-2 localization.Verified against the live API (operator's browser): sparse → null, default fieldset → content_json_string present. No migrations. CI green on dev head
976107b(run 1124).After merge: re-pull
:latest, re-run Recapture on StickySpoodge —with_bodyshould go 126 → 135.