Remove mentions from the output

This commit is contained in:
2024-12-30 06:02:55 +00:00
parent b219682f39
commit 2a1bb12a6e

View File

@@ -182,7 +182,9 @@ async function processJob(job: Job) {
console.log();
// concatenate the partial responses
const text = responses.join("").replaceAll(/(\r\n|\r|\n)\s+/g, "\n\n");;
const text = responses.join("")
.replaceAll(/(\r\n|\r|\n)\s+/g, "\n\n") // remove extra newlines
.replaceAll("@", ""); // remove mentions
// post a note
await misskey.request("notes/create", {