Fix _upsert_post to return (post, old_status) tuple
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m25s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-21 23:40:27 +00:00
parent 0d18fd8fd9
commit ceacf7a56e

View File

@@ -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."""