test: check old megalodon version

This commit is contained in:
Mar0xy 2023-09-25 01:20:03 +02:00
parent ead0667320
commit 89eea5df52
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
230 changed files with 7537 additions and 21119 deletions

View file

@ -171,7 +171,7 @@ export class ApiStatusMastodon {
try {
const id = body.in_reply_to_id;
const post = await client.getStatus(id);
const react = post.data.emoji_reactions.filter((e: any) => e.me)[0].name;
const react = post.data.reactions.filter((e: any) => e.me)[0].name;
const data = await client.deleteEmojiReaction(id, react);
reply.send(data.data);
} catch (e: any) {