fix
This commit is contained in:
parent
eff4d99dbe
commit
80cfd7bf38
|
|
@ -60,10 +60,10 @@ async def t_callback_owned_content(query: types.CallbackQuery, memory=None, user
|
|||
|
||||
|
||||
async def t_callback_node_content(query: types.CallbackQuery, memory=None, user=None, db_session=None, chat_wrap=None, **extra):
|
||||
content_hash = query.data.split('_')[1]
|
||||
content_oid = int(query.data.split('_')[1])
|
||||
return await chat_wrap.send_content(
|
||||
db_session.query(StoredContent).filter_by(
|
||||
hash=base58.b58encode(bytes.fromhex(content_hash)).decode()
|
||||
id=content_oid
|
||||
).first(),
|
||||
message_id=query.message.message_id
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue