fixed again
This commit is contained in:
parent
e6ff6aeee5
commit
f3c7a5dba1
6
main.js
6
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,
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user