Skip to content

Commit 2dbf2cc

Browse files
authored
Merge pull request elizaOS#3327 from vidvidvid/vidvidvid-fix/twitter-post-error
fix: Twitter logging bug
2 parents 87515e2 + b2e7ed9 commit 2dbf2cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/client-twitter/src/post.ts

+3
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,9 @@ export class TwitterPostClient {
554554
const parsedResponse = parseJSONObjectFromText(rawTweetContent);
555555
if (parsedResponse?.text) {
556556
tweetTextForPosting = parsedResponse.text;
557+
} else {
558+
// If not JSON, use the raw text directly
559+
tweetTextForPosting = rawTweetContent.trim();
557560
}
558561

559562
if (

0 commit comments

Comments
 (0)