chore(social): trim post length

This commit is contained in:
Jan De Dobbeleer 2023-07-24 19:12:21 +02:00 committed by Jan De Dobbeleer
parent 0af3029cf1
commit 344c9b6d86

View file

@ -16,6 +16,7 @@ const {Octokit} = require("@octokit/rest");
notes = notes.replaceAll('**', '');
notes = notes.replace(/ \(\[[0-9a-z]+\]\(.*\)/g, '');
notes = notes.trim();
notes = notes.substring(0, 249);
const agent = new BskyAgent({ service: 'https://bsky.social' });
await agent.login({ identifier: process.env.BLUESKY_IDENTIFIER, password: process.env.BLUESKY_PASSWORD });