mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 15:57:16 +00:00
fix: [chats] fix chats image importer
This commit is contained in:
parent
88f30833c2
commit
4168d07118
2 changed files with 3 additions and 2 deletions
|
@ -63,7 +63,8 @@ class DefaultFeeder:
|
||||||
return self.json_data.get('data')
|
return self.json_data.get('data')
|
||||||
|
|
||||||
def get_obj_type(self):
|
def get_obj_type(self):
|
||||||
return self.json_data.get('type', 'item')
|
meta = self.get_json_meta()
|
||||||
|
return meta.get('type', 'item')
|
||||||
|
|
||||||
## OVERWRITE ME ##
|
## OVERWRITE ME ##
|
||||||
def get_obj(self):
|
def get_obj(self):
|
||||||
|
|
|
@ -106,7 +106,7 @@ def create(thread_id, chat_instance, chat_id, subchannel_id, message_id, contain
|
||||||
new_thread_id = f'{chat_id}/{subchannel_id}/{thread_id}'
|
new_thread_id = f'{chat_id}/{subchannel_id}/{thread_id}'
|
||||||
|
|
||||||
thread = ChatThread(new_thread_id, chat_instance)
|
thread = ChatThread(new_thread_id, chat_instance)
|
||||||
if not thread.exists():
|
if not thread.is_children():
|
||||||
thread.create(container_obj, message_id)
|
thread.create(container_obj, message_id)
|
||||||
return thread
|
return thread
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue