Skip to content

Commit

Permalink
fix posts
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Jan 9, 2025
1 parent 45a7b36 commit 06e4f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ export async function status() {
return response.json();
}

export async function tweet(text) {
export async function tweet(posts) {
const response = await fetch("/api/twitter/tweet", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({ text }),
body: JSON.stringify({ posts }),
});

if (!response.ok) {
Expand Down

0 comments on commit 06e4f7c

Please sign in to comment.