]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: limit document title length in workflows (#9085)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Wed, 12 Feb 2025 05:14:55 +0000 (21:14 -0800)
committerGitHub <noreply@github.com>
Wed, 12 Feb 2025 05:14:55 +0000 (05:14 +0000)
src/documents/signals/handlers.py

index 1c4d366948b7d184674b9be18e8466eb9b456bb1..5da9ef87923e80b01edccb1397647bc23662bd79 100644 (file)
@@ -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)