From ceacf7a56e8e739de1f548ff185f299b05ff813d Mon Sep 17 00:00:00 2001 From: giles Date: Sat, 21 Feb 2026 23:40:27 +0000 Subject: [PATCH] Fix _upsert_post to return (post, old_status) tuple Co-Authored-By: Claude Opus 4.6 --- bp/blog/ghost/ghost_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bp/blog/ghost/ghost_sync.py b/bp/blog/ghost/ghost_sync.py index dbb8ab9..9f52c45 100644 --- a/bp/blog/ghost/ghost_sync.py +++ b/bp/blog/ghost/ghost_sync.py @@ -271,7 +271,7 @@ async def _upsert_post(sess: AsyncSession, gp: Dict[str, Any], author_map: Dict[ sess.add(PageConfig(container_type="page", container_id=obj.id, features={})) await sess.flush() - return obj + return obj, old_status async def _ghost_find_member_by_email(email: str) -> Optional[dict]: """Return first Ghost member with this email, or None."""