fix: checks

This commit is contained in:
Mar0xy 2023-09-25 19:50:22 +02:00
parent 354937abdd
commit d521e95dda
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
2 changed files with 2 additions and 4 deletions

View file

@ -219,7 +219,7 @@ export class ApiStatusMastodon {
const client = getClient(BASE_URL, accessTokens);
const body: any = _request.body;
try {
if (body.media_ids) body.media_ids = undefined;
if (!body.media_ids) body.media_ids = undefined;
if (body.media_ids && !body.media_ids.length) body.media_ids = undefined;
if (body.media_ids) {
body.media_ids = (body.media_ids as string[]).map((p) => convertId(p, IdType.SharkeyId));