fix
This commit is contained in:
1 parent
eff4d99dbe
commit
80cfd7bf38
1 file changed
+2
-2
@@ -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
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user