From 32045c7d65ea299d5d12b10fc7deeb66a1e4074f Mon Sep 17 00:00:00 2001 From: user Date: Tue, 23 Apr 2024 12:03:00 +0300 Subject: [PATCH] add content type --- 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 fa3048d..89adc77 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 = {} + opts = {'content_type': content['content_type']} if content['encrypted_content'].key_id: known_key = request.ctx.db_session.query(KnownKey).filter( KnownKey.id == content['encrypted_content'].key_id