mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
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:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user