upd: megalodon to v7

This commit is contained in:
Mar0xy 2023-09-24 01:44:53 +02:00
parent b4674ce65c
commit afda15260f
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
234 changed files with 21334 additions and 7675 deletions

View file

@ -46,7 +46,7 @@ export class apiAccountMastodon {
acct.source = {
note: acct.note,
fields: acct.fields,
privacy: await (this.client as any).getDefaultPostPrivacy(),
privacy: "",
sensitive: false,
language: "",
};
@ -72,7 +72,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);