Skip to content

Commit

Permalink
Fix Twitter bot
Browse files Browse the repository at this point in the history
  • Loading branch information
misenhower committed Nov 16, 2024
1 parent 2530dcb commit 00ab402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/twitter/clients/TwitterClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TwitterClient
// Upload images
let mediaIds = await Promise.all(
status.media.map(async m => {
let id = await this.api().v1.uploadMedia(m.file, { mimeType: m.type });
let id = await this.api().v1.uploadMedia(Buffer.from(m.file), { mimeType: m.type });

if (m.altText) {
await this.api().v1.createMediaMetadata(id, { alt_text: { text: m.altText } });
Expand Down

0 comments on commit 00ab402

Please sign in to comment.