Skip to content

Commit 344c9b6

Browse files
chore(social): trim post length
1 parent 0af3029 commit 344c9b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/bluesky/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const {Octokit} = require("@octokit/rest");
1616
notes = notes.replaceAll('**', '');
1717
notes = notes.replace(/ \(\[[0-9a-z]+\]\(.*\)/g, '');
1818
notes = notes.trim();
19+
notes = notes.substring(0, 249);
1920

2021
const agent = new BskyAgent({ service: 'https://bsky.social' });
2122
await agent.login({ identifier: process.env.BLUESKY_IDENTIFIER, password: process.env.BLUESKY_PASSWORD });

0 commit comments

Comments
 (0)