Skip to content

Commit

Permalink
Update mastodon api to use v2 for media posts
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdicarlo committed Dec 23, 2022
1 parent 65df47f commit 053ba19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class Mastodon extends Website {

private async uploadMedia(data: MastodonAccountData, file: PostFile, altText: string): Promise<{ id: string }> {
const upload = await Http.post<{ id: string; errors: any }>(
`${data.website}/api/v1/media`,
`${data.website}/api/v2/media`,
undefined,
{
type: 'multipart',
Expand Down

0 comments on commit 053ba19

Please sign in to comment.