From 344c9b6d863e587a4b55f26b1752bb0cac36db0a Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Mon, 24 Jul 2023 19:12:21 +0200 Subject: [PATCH] chore(social): trim post length --- scripts/bluesky/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/bluesky/main.js b/scripts/bluesky/main.js index 90bca2a24896..961b2313b365 100644 --- a/scripts/bluesky/main.js +++ b/scripts/bluesky/main.js @@ -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 });