From fe8e65881da9a4d8f00f4c84101953b6c0fd579a Mon Sep 17 00:00:00 2001 From: gilesb Date: Sun, 11 Jan 2026 23:40:50 +0000 Subject: [PATCH] Map owner to uploader for S-expression recipes S-expression recipes use 'owner' field while YAML uses 'uploader'. Normalize to 'uploader' so recipe listing filter works for both formats. Co-Authored-By: Claude Opus 4.5 --- app/services/recipe_service.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/services/recipe_service.py b/app/services/recipe_service.py index 119e4b2..dfe5ad2 100644 --- a/app/services/recipe_service.py +++ b/app/services/recipe_service.py @@ -90,6 +90,10 @@ class RecipeService: # Add the recipe_id to the data for convenience recipe_data["recipe_id"] = recipe_id + # Normalize owner/uploader field (S-expr uses 'owner', YAML uses 'uploader') + if "owner" in recipe_data and "uploader" not in recipe_data: + recipe_data["uploader"] = recipe_data["owner"] + # Get IPFS CID if available ipfs_cid = self.cache.get_ipfs_cid(recipe_id) if ipfs_cid: