From 2a954b03548e3cad178d1eb4b90d0cdc7f4fac58 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 23 Apr 2024 12:32:05 +0300 Subject: [PATCH] add content address --- app/api/routes/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/routes/content.py b/app/api/routes/content.py index 89adc77..f365cf3 100644 --- a/app/api/routes/content.py +++ b/app/api/routes/content.py @@ -34,7 +34,7 @@ async def s_api_v1_content_view(request, content_address: str): r_content = StoredContent.from_cid(request.ctx.db_session, content_address) content = r_content.open_content(request.ctx.db_session) - opts = {'content_type': content['content_type']} + opts = {'content_type': content['content_type'], 'content_address': content['encrypted_content'].meta.get('item_address', '')} if content['encrypted_content'].key_id: known_key = request.ctx.db_session.query(KnownKey).filter( KnownKey.id == content['encrypted_content'].key_id