mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
feat: masto api add display name
This commit is contained in:
parent
99ad96bc7a
commit
21061b6803
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ export function apiAccountMastodon(router: Router): void {
|
|||
const data = await client.verifyAccountCredentials();
|
||||
let acct = data.data;
|
||||
acct.id = convertId(acct.id, IdType.MastodonId);
|
||||
acct.display_name = acct.display_name || acct.username;
|
||||
acct.url = `${BASE_URL}/@${acct.url}`;
|
||||
acct.note = acct.note || "";
|
||||
acct.avatar_static = acct.avatar;
|
||||
|
|
Loading…
Reference in a new issue