fix: Slack notifications show "Untitled" for documents without titles (#12406)

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Tom Moor
2026-05-20 17:49:44 -04:00
committed by GitHub
parent 841ab022a6
commit 80d90e3201
2 changed files with 3 additions and 3 deletions
@@ -22,7 +22,7 @@ export function presentMessageAttachment(
return {
color: collection?.color,
title: document.title,
title: document.titleWithDefault,
title_link: `${team.url}${document.url}`,
footer: collection?.name,
callback_id: document.id,
@@ -124,10 +124,10 @@ export default class SlackProcessor extends BaseProcessor {
if (!integration) {
return;
}
let text = `${document.updatedBy.name} updated "${document.title}"`;
let text = `${document.updatedBy.name} updated "${document.titleWithDefault}"`;
if (event.name === "documents.publish") {
text = `${document.createdBy.name} published "${document.title}"`;
text = `${document.createdBy.name} published "${document.titleWithDefault}"`;
}
await fetch(integration.settings.url, {