upd: megalodon to v7
This commit is contained in:
parent
b4674ce65c
commit
afda15260f
234 changed files with 21334 additions and 7675 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue