Skip to content

Commit

Permalink
chore(social): trim post length
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Jul 24, 2023
1 parent 0af3029 commit 344c9b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/bluesky/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 344c9b6

Please sign in to comment.