From 1a32d92d08aafbbc7443039cf8bce2485bc8d180 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 17 Jul 2026 06:50:16 -0400 Subject: [PATCH] refac --- backend/open_webui/models/notes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/open_webui/models/notes.py b/backend/open_webui/models/notes.py index 1cddd2f8fa..55e19e7aaf 100644 --- a/backend/open_webui/models/notes.py +++ b/backend/open_webui/models/notes.py @@ -312,6 +312,9 @@ class NoteTable: if 'meta' in form_data: note.meta = {**note.meta, **form_data['meta']} + if not db.is_modified(note) and 'access_grants' not in form_data: + return await self._to_note_model(note, db=db) + if 'access_grants' in form_data: await AccessGrants.set_access_grants('note', id, form_data['access_grants'], db=db)