From a42ccb9c1d8b120b8d0e2e609dea54cc9b7bbc81 Mon Sep 17 00:00:00 2001 From: popomore Date: Mon, 16 Feb 2026 21:22:27 +0800 Subject: [PATCH] f --- extensions/feishu/src/bot.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/extensions/feishu/src/bot.ts b/extensions/feishu/src/bot.ts index 2c7716e883..2f32e759f9 100644 --- a/extensions/feishu/src/bot.ts +++ b/extensions/feishu/src/bot.ts @@ -274,7 +274,6 @@ function getMentionedOpenIdsFromPost(content: string): string[] { /** * Parse post (rich text) content and extract embedded image keys. * Post structure: { title?: string, content: [[{ tag, text?, image_key?, ... }]] } - * or { zh_cn: { title?, content: [...] } } when received from Feishu. */ function parsePostContent(content: string): { textContent: string; @@ -282,9 +281,8 @@ function parsePostContent(content: string): { } { try { const parsed = JSON.parse(content); - const locale = parsed.zh_cn ?? parsed; - const title = locale.title || ""; - const contentBlocks = locale.content || []; + const title = parsed.title || ""; + const contentBlocks = parsed.content || []; let textContent = title ? `${title}\n\n` : ""; const imageKeys: string[] = [];