Skip to content

Commit

Permalink
Update post.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vidvidvid authored Feb 6, 2025
1 parent cbc782c commit 20697fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,9 @@ export class TwitterPostClient {
const parsedResponse = parseJSONObjectFromText(rawTweetContent);
if (parsedResponse?.text) {
tweetTextForPosting = parsedResponse.text;
} else {
// If not JSON, use the raw text directly
tweetTextForPosting = rawTweetContent.trim();
}

if (
Expand Down

0 comments on commit 20697fb

Please sign in to comment.