diff --git a/main.js b/main.js index 2c26d86..768e57d 100644 --- a/main.js +++ b/main.js @@ -102,9 +102,13 @@ async function postToBluesky(text, images) { } const richText = new RichText({ text: completetext }); await richText.detectFacets(agent); + let text = richText.text; + if (richText.graphemeLength > 300) { + text = text.substr(0,299) + '…'; + } return agent.post({ - text: richText.text, + text: text, facets: richText.facets, }); }