mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 17:14:33 +00:00
fix: harden msteams mentions and fallback links (#15436) (thanks @hyojin)
This commit is contained in:
@@ -358,7 +358,8 @@ async function buildActivity(
|
||||
|
||||
// Bot Framework doesn't support "reference" attachment type for sending
|
||||
const fileLink = `📎 [${uploaded.name}](${uploaded.shareUrl})`;
|
||||
activity.text = msg.text ? `${msg.text}\n\n${fileLink}` : fileLink;
|
||||
const existingText = typeof activity.text === "string" ? activity.text : undefined;
|
||||
activity.text = existingText ? `${existingText}\n\n${fileLink}` : fileLink;
|
||||
return activity;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user