From feb30f36df26aa37ed520bc50c603b16c01de05a Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 11 Feb 2025 21:14:55 -0800 Subject: [PATCH] Fix: limit document title length in workflows (#9085) --- src/documents/signals/handlers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/documents/signals/handlers.py b/src/documents/signals/handlers.py index 1c4d36694..5da9ef879 100644 --- a/src/documents/signals/handlers.py +++ b/src/documents/signals/handlers.py @@ -1178,6 +1178,8 @@ def run_workflows( webhook_action() if not use_overrides: + # limit title to 128 characters + document.title = document.title[:128] # save first before setting tags document.save() document.tags.set(doc_tag_ids)