fix: key_id
This commit is contained in:
parent
67a8df3b52
commit
d4d47f839f
|
|
@ -37,7 +37,7 @@ async def s_api_v1_content_view(request, content_address: str):
|
||||||
opts = {}
|
opts = {}
|
||||||
if content['encrypted_content'].key_id:
|
if content['encrypted_content'].key_id:
|
||||||
known_key = request.ctx.db_session.query(KnownKey).filter(
|
known_key = request.ctx.db_session.query(KnownKey).filter(
|
||||||
KnownKey.id == content
|
KnownKey.id == content['encrypted_content'].key_id
|
||||||
).first()
|
).first()
|
||||||
if known_key:
|
if known_key:
|
||||||
opts['key_hash'] = known_key.seed_hash
|
opts['key_hash'] = known_key.seed_hash
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue