From f3c7a5dba1d14cc9d233009400cbf865131f05b3 Mon Sep 17 00:00:00 2001 From: "Tomoya Matsuura(MacBookPro)" Date: Mon, 11 Mar 2024 23:22:46 +0900 Subject: [PATCH] fixed again --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 768e57d..d36a47f 100644 --- a/main.js +++ b/main.js @@ -102,13 +102,13 @@ async function postToBluesky(text, images) { } const richText = new RichText({ text: completetext }); await richText.detectFacets(agent); - let text = richText.text; + let t = richText.text; if (richText.graphemeLength > 300) { - text = text.substr(0,299) + '…'; + t = t.substring(0,299) + '…'; } return agent.post({ - text: text, + text: t, facets: richText.facets, }); }