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 <noreply@anthropic.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user