From 1bfbe93a2576d84c125fe34bba1d9febff7936fc Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Tue, 26 Sep 2023 17:48:33 +0200 Subject: [PATCH] fix: mastodon app displayName is not a string https://www.youtube.com/watch?v=XQu_IOBiLfk --- packages/megalodon/src/misskey/api_client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index c8be7b6b5..9cbf3db6c 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -82,7 +82,7 @@ namespace MisskeyAPI { id: u.id, username: u.username, acct: acct, - display_name: u.name, + display_name: u.name ? u.name : '', locked: false, group: null, noindex: null, @@ -117,7 +117,7 @@ namespace MisskeyAPI { id: u.id, username: u.username, acct: acct, - display_name: u.name, + display_name: u.name ? u.name : '', locked: u.isLocked, group: null, noindex: null,