From a2d870a803f1d9c96138ed3e0587fadfebdc32cb Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Mon, 10 Jul 2023 18:05:34 +0200 Subject: [PATCH] [mastodon-client] userDetail: fallback to username if displayname is null --- packages/megalodon/src/misskey/api_client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index f80d5a442..1c198ecc9 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -156,7 +156,7 @@ namespace MisskeyAPI { id: u.id, username: u.username, acct: acct, - display_name: u.name, + display_name: u.name || u.username, locked: u.isLocked, created_at: u.createdAt, followers_count: u.followersCount,