mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #24486] [MERGED] fix: notes is_pinned TypeError on create/get #82548
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/24486
Author: @Classic298
Created: 5/9/2026
Status: ✅ Merged
Merged: 5/9/2026
Merged by: @tjbck
Base:
dev← Head:fix/notes-is-pinned-typeerror📝 Commits (1)
3612151fix: notes is_pinned TypeError on create/get📊 Changes
2 files changed (+5 additions, -2 deletions)
View changed files
📝
backend/open_webui/models/notes.py(+1 -1)📝
backend/open_webui/routers/notes.py(+4 -1)📄 Description
is_pinned exists on the NoteModel pydantic schema but not on the Note SQLAlchemy table (pinning lives in PinnedNote). Two call sites broke after the split:
Exclude is_pinned from the dump on insert, and override it via dict-spread on the response (matching the pattern already used elsewhere in the same router).
Fixes #24484
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.