Skip to content

Commit

Permalink
Merge pull request #3327 from vidvidvid/vidvidvid-fix/twitter-post-error
Browse files Browse the repository at this point in the history
fix: Twitter logging bug
  • Loading branch information
shakkernerd authored Feb 6, 2025
2 parents 87515e2 + b2e7ed9 commit 2dbf2cc
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 2dbf2cc

Please sign in to comment.