diff --git a/packages/pl-api/lib/client.ts b/packages/pl-api/lib/client.ts index 7d1bda6e0..5ec98e0e0 100644 --- a/packages/pl-api/lib/client.ts +++ b/packages/pl-api/lib/client.ts @@ -2004,7 +2004,11 @@ class PlApiClient { fixedParams.visibility = 'circle'; } - const response = await this.request('/api/v1/statuses', { + const input = params.preview && this.features.version.software === MITRA + ? '/api/v1/statuses/preview' + : '/api/v1/statuses'; + + const response = await this.request(input, { method: 'POST', body: fixedParams, }); diff --git a/packages/pl-api/lib/features.ts b/packages/pl-api/lib/features.ts index 4197921bc..2b886ae38 100644 --- a/packages/pl-api/lib/features.ts +++ b/packages/pl-api/lib/features.ts @@ -472,10 +472,12 @@ const getFeatures = (instance: Instance) => { /** * @see POST /api/v1/statuses + * @see POST /api/v1/statuses/preview */ createStatusPreview: any([ v.software === AKKOMA, v.software === PLEROMA, + v.software === MITRA, ]), /**