mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-18 04:43:55 +00:00
fix: an imported chat shows its tags (#32454)
This commit is contained in:
parent
3c82fda4e8
commit
fd47370e85
1 changed files with 3 additions and 0 deletions
|
|
@ -864,6 +864,9 @@ async def import_chats(
|
|||
|
||||
try:
|
||||
chats = await Chats.import_chats(user.id, form_data.chats, db=db)
|
||||
await Tags.ensure_tags_exist(
|
||||
list({tag_id for chat in chats for tag_id in (chat.meta or {}).get('tags', [])}), user.id, db=db
|
||||
)
|
||||
await publish_event(
|
||||
request,
|
||||
EVENTS.CHAT_IMPORTED,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue