Fix: limit document.title length in workflows

This commit is contained in:
shamoon 2025-02-11 21:05:20 -08:00
parent bbad36717f
commit 9081933ffb

View File

@ -1178,6 +1178,8 @@ def run_workflows(
webhook_action() webhook_action()
if not use_overrides: if not use_overrides:
# limit title to 128 characters
document.title = document.title[:128]
# save first before setting tags # save first before setting tags
document.save() document.save()
document.tags.set(doc_tag_ids) document.tags.set(doc_tag_ids)