Revert "test: check old megalodon version"

This reverts commit 89eea5df52.
This commit is contained in:
Mar0xy 2023-09-25 01:49:57 +02:00
parent 08cd1f313c
commit 3fd2b55406
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
230 changed files with 21178 additions and 7596 deletions

View file

@ -71,7 +71,7 @@ export class ApiAccountMastodon {
public async lookup() {
try {
const data = await this.client.search((this.request.query as any).acct, 'accounts');
const data = await this.client.search((this.request.query as any).acct, { type: 'accounts' });
return convertAccount(data.data.accounts[0]);
} catch (e: any) {
/* console.error(e);

View file

@ -23,7 +23,7 @@ async function getHighlight(
});
const api = await apicall.json();
const data: MisskeyEntity.Note[] = api;
return data.map((note) => new Converter(BASE_URL).note(note, domain));
return data.map((note) => Converter.note(note, domain));
} catch (e: any) {
console.log(e);
console.log(e.response.data);
@ -49,7 +49,7 @@ async function getFeaturedUser( BASE_URL: string, host: string, accessTokens: st
return data.map((u) => {
return {
source: 'past_interactions',
account: new Converter(BASE_URL).userDetail(u, host),
account: Converter.userDetail(u, host),
};
});
} catch (e: any) {

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.reactions.filter((e: any) => e.me)[0].name;
const react = post.data.emoji_reactions.filter((e: any) => e.me)[0].name;
const data = await client.deleteEmojiReaction(id, react);
reply.send(data.data);
} catch (e: any) {