mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #23797] [CLOSED] perf(chats): avoid redundant fetch in get_chat_by_share_id #131040
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23797
Author: @Classic298
Created: 4/16/2026
Status: ❌ Closed
Base:
dev← Head:claude/optimize-chat-share-id-9ym0Z📝 Commits (1)
a963beaperf(chats): avoid redundant fetch in get_chat_by_share_id📊 Changes
1 file changed (+8 additions, -4 deletions)
View changed files
📝
backend/open_webui/models/chats.py(+8 -4)📄 Description
get_chat_by_share_id already loads the Chat row via share_id lookup, then discarded it and re-fetched through get_chat_by_id. Drop the second query and return the row we already have, preserving the null-byte sanitization behavior inline.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.