From 8e7228fc38e3d27ce40340fbf65cee82f23546f9 Mon Sep 17 00:00:00 2001 From: gilesb Date: Mon, 12 Jan 2026 08:58:51 +0000 Subject: [PATCH] Fix recipe_id to use IPFS CID instead of local hash The recipe upload was returning the SHA3-256 hash from artdag's cache instead of the IPFS CID, causing recipe lookups to fail. Co-Authored-By: Claude Opus 4.5 --- app/services/recipe_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/recipe_service.py b/app/services/recipe_service.py index 451048f..d71a464 100644 --- a/app/services/recipe_service.py +++ b/app/services/recipe_service.py @@ -114,7 +114,7 @@ class RecipeService: # Store in cache (content-addressed, auto-pins to IPFS) cached, ipfs_cid = self.cache.put(tmp_path, node_type="recipe", move=True) - recipe_id = cached.cid + recipe_id = ipfs_cid or cached.cid # Prefer IPFS CID return recipe_id, None